Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created October 20, 2019 07:46
Show Gist options
  • 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