Skip to content

Instantly share code, notes, and snippets.

@erraticgenerator
Last active October 31, 2020 21:47
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 erraticgenerator/592e80d6842f79a55a640fa2f97cd381 to your computer and use it in GitHub Desktop.
Save erraticgenerator/592e80d6842f79a55a640fa2f97cd381 to your computer and use it in GitHub Desktop.
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