Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created October 20, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkotra/500a611805539fd7f3735d2768cb3b01 to your computer and use it in GitHub Desktop.
Save jkotra/500a611805539fd7f3735d2768cb3b01 to your computer and use it in GitHub Desktop.
# data preprocessing - I
data.dropna(inplace=True)
le = LabelEncoder()
data["cbwd"] = le.fit_transform(data["cbwd"])
data.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment