Skip to content

Instantly share code, notes, and snippets.

@jspeed-meyers
Created August 10, 2023 01:04
Show Gist options
  • Save jspeed-meyers/920d371366f5dfd0764b0fe0a85e9f7e to your computer and use it in GitHub Desktop.
Save jspeed-meyers/920d371366f5dfd0764b0fe0a85e9f7e to your computer and use it in GitHub Desktop.
Summarize funder finder data collected for top python packages
import json
import pandas as pd
pd.options.display.float_format = '{:.4f}'.format
with open("funder_finder_results.jsonl") as f:
df = pd.DataFrame(json.loads(line) for line in f)
#print(df.info())
#print(df.type.value_counts())
#print(pd.crosstab(df.type, df.funding_type))
#print(df.groupby(df.type).num_contributors.describe())
#print(df.groupby(df.type).total_funding_usd.describe())
#print(df.total_funding_usd.describe())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment