Skip to content

Instantly share code, notes, and snippets.

@rohanjoseph93
Created December 27, 2018 19:37
Show Gist options
  • Save rohanjoseph93/0e4c7148cbd2e11148dd9744d0d2400e to your computer and use it in GitHub Desktop.
Save rohanjoseph93/0e4c7148cbd2e11148dd9744d0d2400e to your computer and use it in GitHub Desktop.
#import data
data = pd.read_csv('breast-cancer-wisconsin.csv',header=None)
#set column names
data.columns = ['Sample Code Number','Clump Thickness','Uniformity of Cell Size',
'Uniformity of Cell Shape','Marginal Adhesion','Single Epithelial Cell Size',
'Bare Nuclei','Bland Chromatin','Normal Nucleoli','Mitoses','Class']
#view top 10 rows
data.head(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment