Created
December 27, 2018 19:46
-
-
Save rohanjoseph93/c6880090b515a001f239c20b68bd282e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data = data.drop(['Sample Code Number'],axis=1) #Drop 1st column | |
| data = data[data['Bare Nuclei'] != '?'] #Remove rows with missing data | |
| data['Class'] = np.where(data['Class'] ==2,0,1) #Change the Class representation | |
| data['Class'].value_counts() #Class distribution |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment