Skip to content

Instantly share code, notes, and snippets.

@jainanchit51
Last active April 29, 2018 11:20
Show Gist options
  • Save jainanchit51/4157d074226f7e9d944e8e8d1cab5a53 to your computer and use it in GitHub Desktop.
Save jainanchit51/4157d074226f7e9d944e8e8d1cab5a53 to your computer and use it in GitHub Desktop.
#handling na
for label in ['clump_thickness','size_uniformity','shape_uniformity','marginal_adhesion']:
dataframe[label] = dataframe[label].fillna(method='ffill')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment