Skip to content

Commit

Permalink
Slight data updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Feb 1, 2024
1 parent 1874d9c commit 633769b
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions notebooks/slifka.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 18287/18287 [00:00<00:00, 952597.40it/s]"
"100%|██████████| 18287/18287 [00:00<00:00, 1235801.20it/s]"
]
},
{
Expand Down Expand Up @@ -121,14 +121,14 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 70659611/70659611 [04:29<00:00, 262293.44it/s]"
"100%|██████████| 70659611/70659611 [04:32<00:00, 259776.33it/s]"
]
},
{
Expand Down Expand Up @@ -233,14 +233,14 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 4643882/4643882 [00:05<00:00, 808163.79it/s]"
"100%|██████████| 4643882/4643882 [00:06<00:00, 691777.95it/s]"
]
},
{
Expand Down Expand Up @@ -280,14 +280,14 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 4643882/4643882 [00:09<00:00, 505675.05it/s]"
"100%|██████████| 4643882/4643882 [00:09<00:00, 495751.89it/s]\n"
]
},
{
Expand All @@ -296,13 +296,6 @@
"text": [
"Saved to ../data/weekly-contributions-2020.csv\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n"
]
}
],
"source": [
Expand Down Expand Up @@ -370,7 +363,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -405,7 +398,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -436,7 +429,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -477,16 +470,16 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 1250295/1250295 [00:01<00:00, 1022021.36it/s]\n",
"100%|██████████| 1250295/1250295 [00:01<00:00, 1032787.78it/s]\n",
"100%|██████████| 1250295/1250295 [00:01<00:00, 1050511.00it/s]"
"100%|██████████| 1250295/1250295 [00:01<00:00, 810089.33it/s] \n",
"100%|██████████| 1250295/1250295 [00:01<00:00, 1051498.90it/s]\n",
"100%|██████████| 1250295/1250295 [00:01<00:00, 1054138.85it/s]"
]
},
{
Expand All @@ -495,7 +488,15 @@
"text": [
"Found 8 contributors who gave >= $100,000\n",
"Found 332 contributors who gave >= $25,000\n",
"Found 7889 contributors who gave >= $5,000\n"
"Found 7889 contributors who gave >= $5,000\n",
"BELL, LEONARD (WOODBRIDGE, CT) gave $138,486.00 in 137 contributions\n",
"ROWE, KEVIN (SANTA FE, NM) gave $110,597.00 in 42 contributions\n",
"FINK, DAVID (LOS ANGELES, CA) gave $126,000.00 in 45 contributions\n",
"BEKENSTEIN, JOSHUA (WAYLAND, MA) gave $131,500.00 in 47 contributions\n",
"KLARMAN, SETH (BOSTON, MA) gave $129,800.00 in 47 contributions\n",
"SIMONS, NAT (BERKELEY, CA) gave $112,000.00 in 40 contributions\n",
"SRIKANT, RAM (CUPERTINO, CA) gave $117,500.00 in 43 contributions\n",
"RANDALL, GIOVANNA (NEW YORK, NY) gave $109,200.00 in 39 contributions\n"
]
},
{
Expand Down Expand Up @@ -531,7 +532,12 @@
"\n",
"print(f\"Found {len(big_100k_contributors)} contributors who gave >= $100,000\")\n",
"print(f\"Found {len(big_25k_contributors)} contributors who gave >= $25,000\")\n",
"print(f\"Found {len(big_5k_contributors)} contributors who gave >= $5,000\")"
"print(f\"Found {len(big_5k_contributors)} contributors who gave >= $5,000\")\n",
"\n",
"# Okay, I gotta know -- who *are* the biggest contributors?\n",
"for contributor, contributions in big_100k_contributors.items():\n",
" total = sum(amount_usd for _, _, amount_usd in contributions)\n",
" print(f\"{contributor.name} ({contributor.city}, {contributor.state}) gave ${total:,.2f} in {len(contributions)} contributions\")"
]
}
],
Expand Down

0 comments on commit 633769b

Please sign in to comment.