Skip to content

Instantly share code, notes, and snippets.

@suhaskv
Created December 23, 2020 11:34
Show Gist options
  • Save suhaskv/7cba8cdbd6aa81243c5c31b267d096bb to your computer and use it in GitHub Desktop.
Save suhaskv/7cba8cdbd6aa81243c5c31b267d096bb to your computer and use it in GitHub Desktop.
VSB Power Line Blog - Check number of unique values in train data
for col in metadata_train.columns:
print(f"Number of unique values in {col} is {metadata_train[col].unique().shape[0]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment