text_plain_output_1.png image_output_1.png
import pandas as pd

import pandas as pd
data = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/breast-cancer-wisconsin/breast-cancer-wisconsin.data', header=None)
data.columns = ['Sample code', 'Clump Thickness', 'Uniformity of Cell Size', 'Uniformity of Cell Shape', 'Marginal Adhesion', 'Single Epithelial Cell Size', 'Bare Nuclei', 'Bland Chromatin', 'Normal Nucleoli', 'Mitoses', 'Class']
data = data.drop(['Sample code'], axis=1)
print('Number of instances = %d' % data.shape[0])
print('Number of attributes = %d' % data.shape[1])
data.head()