Created
August 24, 2020 21:48
-
-
Save sevperez/70bfe34231fcbdfec30f052eee793572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def num_unique_items(df, col): | |
return len(df[col].unique()) | |
num_unique_items(characters, "text") | |
# 699 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment