Skip to content

Instantly share code, notes, and snippets.

@merishnaSuwal
Last active November 9, 2020 03:10
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 merishnaSuwal/be85b9b3581f514106f1d9ce7b6aadf6 to your computer and use it in GitHub Desktop.
Save merishnaSuwal/be85b9b3581f514106f1d9ce7b6aadf6 to your computer and use it in GitHub Desktop.
# Renaming the first column as target
dataset = dataset.rename(columns = {dataset.columns[0]:"target"})
# Check the count of data in target
dataset["target"].value_counts()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment