Skip to content

Instantly share code, notes, and snippets.

@rohanjoseph93
Created December 27, 2018 19:46
Show Gist options
  • Select an option

  • Save rohanjoseph93/c6880090b515a001f239c20b68bd282e to your computer and use it in GitHub Desktop.

Select an option

Save rohanjoseph93/c6880090b515a001f239c20b68bd282e to your computer and use it in GitHub Desktop.
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