Last active
October 31, 2020 21:47
-
-
Save erraticgenerator/592e80d6842f79a55a640fa2f97cd381 to your computer and use it in GitHub Desktop.
This file contains 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
print('Number of fonts in each variant:') | |
print(df[df.filter(regex=r'^variants_', axis=1).columns].eq(1).sum().sort_values(ascending=False)) | |
print('\nNumber of fonts in each subset:') | |
print(df[df.filter(regex=r'^subsets_', axis=1).columns].eq(1).sum().sort_values(ascending=False)) | |
print('\nNumber of fonts in each category:') | |
print(df[df.filter(regex=r'^category_', axis=1).columns].eq(1).sum().sort_values(ascending=False)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment