From c8b30af37765dd75263694b94e81ca1946102546 Mon Sep 17 00:00:00 2001 From: ziggy Date: Wed, 16 Jun 2021 10:57:14 -0400 Subject: [PATCH] update --- index.ipynb | 2227 +++++++++++++++++++-------------------------------- 1 file changed, 844 insertions(+), 1383 deletions(-) diff --git a/index.ipynb b/index.ipynb index 5de7b47..bd820ba 100644 --- a/index.ipynb +++ b/index.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "pregnant-island", + "id": "sustained-logging", "metadata": {}, "outputs": [], "source": [ @@ -25,7 +25,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "color-prime", + "id": "pending-situation", "metadata": {}, "outputs": [], "source": [ @@ -41,7 +41,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "necessary-techno", + "id": "loose-separation", "metadata": {}, "outputs": [], "source": [ @@ -53,7 +53,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "bizarre-invention", + "id": "middle-distance", "metadata": {}, "outputs": [], "source": [ @@ -64,6 +64,8 @@ " return 'Not Employed'\n", " elif s.lower() in ['self-employed', 'self employed', 'self', 'Self Employee']:\n", " return 'Self Employed'\n", + " elif s.lower() == 'retired':\n", + " return 'Retired'\n", " elif s.lower() == 'none':\n", " return 'None'\n", " elif s.lower() in ['homemaker', 'housewife']:\n", @@ -78,6 +80,10 @@ " return 'Wachtell, Lipton, Rosen & Katz'\n", " elif 'A&E Real Estate' in s.lower():\n", " return 'A&E Real Estate'\n", + " elif 'google' in s.lower():\n", + " return 'Google'\n", + " elif 'WSB Partners' in s:\n", + " return 'WSB Partners'\n", " else:\n", " return s\n", "\n", @@ -88,7 +94,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "intermediate-peace", + "id": "planned-radius", "metadata": {}, "outputs": [], "source": [ @@ -134,7 +140,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "english-grounds", + "id": "gorgeous-kelly", "metadata": {}, "outputs": [], "source": [ @@ -151,7 +157,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "musical-element", + "id": "cooked-cache", "metadata": {}, "outputs": [], "source": [ @@ -159,7 +165,7 @@ "contributions['worst_landlord'] = contributions['NAME'].str.upper().isin(worst_landlords)\n", "contributions['works_in_realestate'] = contributions['OCCUPATION'].str.contains(r'(?i).*REAL ESTATE.*')\n", "contributions['is_realestate'] = contributions['realestate_littlesis'] | contributions['worst_landlord'] | contributions['works_in_realestate']\n", - "contributions['is_lobbyist'] = (contributions['OCCUPATION'].str.upper().eq('LOBBYIST') | contributions['NAME'].str.upper().isin(corporate_lobbyist_employees_variations))\n", + "contributions['is_lobbyist'] = contributions['OCCUPATION'].str.upper().eq('LOBBYIST') | contributions['NAME'].str.upper().isin(corporate_lobbyist_employees_variations)\n", "contributions['is_corporation'] = contributions[\"C_CODE\"].isin([\"LLC\", \"CORP\"])\n", "contributions['flag'] = contributions['is_corporation'] | contributions['is_lobbyist'] | contributions['is_realestate']\n" ] @@ -167,7 +173,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "iraqi-serve", + "id": "beautiful-drunk", "metadata": {}, "outputs": [ { @@ -201,7 +207,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "portuguese-barcelona", + "id": "three-romantic", "metadata": {}, "outputs": [], "source": [ @@ -211,23 +217,23 @@ { "cell_type": "code", "execution_count": 10, - "id": "great-somewhere", + "id": "loaded-penguin", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "Jordan, Tyron 63\n", - "Cole, Sarah 59\n", - "Perkins, D 58\n", - "Koo, Julia 56\n", - "Warren, Roxanne 56\n", - " ..\n", - "Bear, Amy 1\n", - "Johnson, Sylvester 1\n", - "Clarke, Harry 1\n", - "Marinaccio, Olivia 1\n", - "Tibbetts II, John 1\n", + "Jordan, Tyron 63\n", + "Cole, Sarah 59\n", + "Perkins, D 58\n", + "Koo, Julia 56\n", + "Warren, Roxanne 56\n", + " ..\n", + "Austin, Spencer 1\n", + "Costabile, Jj 1\n", + "Sands, Jonathan 1\n", + "Kwatra, Neal 1\n", + "Crisses, Andrew M 1\n", "Name: NAME, Length: 74907, dtype: int64" ] }, @@ -243,7 +249,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "dynamic-semester", + "id": "behavioral-irrigation", "metadata": {}, "outputs": [ { @@ -265,7 +271,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "whole-commodity", + "id": "northern-roller", "metadata": {}, "outputs": [ { @@ -596,17 +602,15 @@ } ], "source": [ - "def filter_flagged_contributions(df):\n", - " return df[df['flag']]\n", - " # return df[ (df['realestate_littlesis'] | df['worst_landlord'] | df['works_in_realestate'] | df['does_lobbying'] | ( df['C_CODE'] == \"LLC\"))]\n", + "# def filter_flagged_contributions(df):\n", + "# return df[df['flag']]\n", + "# return df[ (df['realestate_littlesis'] | df['worst_landlord'] | df['works_in_realestate'] | df['does_lobbying'] | ( df['C_CODE'] == \"LLC\"))]\n", "\n", + "flagged_donations = mayor_donations[mayor_donations['flag']]\n", + "flagged_donations_all_campaigns = contributions[contributions['flag']]\n", "\n", - "flagged_donations = filter_flagged_contributions(mayor_donations)\n", - "flagged_donations_major_candidates = flagged_donations[flagged_donations[\"RECIPNAME\"].isin(major_candidates)]\n", - "flagged_donation_all_races = filter_flagged_contributions(contributions)\n", "\n", - "\n", - "columns = ['ELECTION', 'RECIPID', 'RECIPNAME', 'COMMITTEE', 'NAME', 'AMNT', 'DATE', 'REFUNDDATE', 'CITY', 'STATE', 'ZIP', 'OCCUPATION', 'EMPNAME', 'C_CODE', 'realestate_littlesis', 'worst_landlord', 'works_in_realestate']\n", + "columns = ['ELECTION', 'RECIPID', 'RECIPNAME', 'COMMITTEE', 'NAME', 'AMNT', 'DATE', 'REFUNDDATE', 'CITY', 'STATE', 'ZIP', 'OCCUPATION', 'EMPNAME', 'C_CODE', 'realestate_littlesis', 'worst_landlord', 'works_in_realestate', ]\n", "\n", "flagged_donations.sort_values(['RECIPNAME', 'DATE'])[columns]" ] @@ -614,18 +618,18 @@ { "cell_type": "code", "execution_count": 13, - "id": "oriental-athletics", + "id": "charitable-symphony", "metadata": {}, "outputs": [], "source": [ "flagged_donations.sort_values(['RECIPNAME', 'DATE']).to_csv('flagged_donations.csv')\n", - "flagged_donation_all_races.sort_values(['RECIPNAME', 'DATE']).to_csv('flagged_donations_all_races.csv')" + "flagged_donations_all_campaigns.sort_values(['RECIPNAME', 'DATE']).to_csv('flagged_donations_all_campaigns.csv')" ] }, { "cell_type": "code", "execution_count": 14, - "id": "streaming-offset", + "id": "latest-cable", "metadata": {}, "outputs": [ { @@ -721,7 +725,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "central-abraham", + "id": "royal-cradle", "metadata": {}, "outputs": [], "source": [ @@ -736,7 +740,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "registered-lucas", + "id": "directed-threshold", "metadata": {}, "outputs": [ { @@ -1999,7 +2003,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "circular-former", + "id": "comparable-progress", "metadata": {}, "outputs": [ { @@ -2034,1220 +2038,420 @@ " \n", " \n", " \n", - " Adams, Eric L\n", - " Boutross, Diana\n", - " $10,000\n", - " \n", - " \n", - " tamir, Elliot\n", - " $5,100\n", - " \n", - " \n", - " Demirjian, Alexis\n", - " $5,100\n", - " \n", - " \n", - " Borrok, Charles R.\n", - " $5,100\n", - " \n", - " \n", - " Cohen, Adir\n", - " $5,100\n", + " Adams, Eric L\n", + " Bensusan, Danny\n", + " $12,100\n", " \n", " \n", - " Berman, Nathan\n", - " $5,100\n", + " Waisman, Shai\n", + " $10,200\n", " \n", " \n", - " Tawil, Eliot\n", - " $5,100\n", + " Guzel, Murat\n", + " $10,100\n", " \n", " \n", - " Verrone, Robert\n", - " $5,100\n", + " Singh, Navdeep\n", + " $10,000\n", " \n", " \n", - " Schwartz, Yoel\n", - " $5,000\n", + " Serova, Daria\n", + " $10,000\n", " \n", " \n", - " Shurka, Manny\n", - " $5,000\n", + " Boutross, Diana\n", + " $10,000\n", " \n", " \n", - " Landau, Solomon\n", - " $5,000\n", + " Bartlett, Gregory\n", + " $7,600\n", " \n", " \n", - " Corman, Jeffrey\n", - " $5,000\n", + " Karandikar, Satish\n", + " $7,100\n", " \n", " \n", - " popkin, drew\n", - " $4,000\n", + " Akcetin, Mehmet\n", + " $7,000\n", " \n", " \n", - " Neamonitakis, Michael\n", - " $4,000\n", + " David, Emanuel\n", + " $6,600\n", " \n", " \n", - " Fisher, Avi\n", - " $3,400\n", + " Donovan, Shaun\n", + " Donovan, Shaun\n", + " $19,100\n", " \n", " \n", - " Vitucci Sr, Dominick\n", - " $3,400\n", + " Blumenstein, Ruth\n", + " $15,300\n", " \n", " \n", - " Ward, Jesse\n", - " $3,400\n", + " Zabar, Eli\n", + " $10,200\n", " \n", " \n", - " Gindi, jeffrey\n", - " $3,175\n", + " Fredericks, Devon\n", + " $10,200\n", " \n", " \n", - " Anagnost, Dick\n", - " $3,000\n", + " Bingham, Clara\n", + " $10,200\n", " \n", " \n", - " Levkov, Viacheslav\n", - " $3,000\n", + " Nolen, Eliot\n", + " $10,200\n", " \n", " \n", - " Silviano, John\n", - " $3,000\n", + " Briganti, Stephen\n", + " $10,200\n", " \n", " \n", - " Iannucci, Robert\n", - " $2,500\n", + " Rockefeller, David\n", + " $10,200\n", " \n", " \n", - " Chassin, Jonathan\n", - " $2,500\n", + " Goodman, Sara\n", + " $10,150\n", " \n", " \n", - " Marchi, Dean\n", - " $2,500\n", + " Niejelow, Alexander\n", + " $8,100\n", " \n", " \n", - " Sciortino, Anthony\n", + " Garcia, Kathryn A\n", + " Kramer, Mchael\n", " $2,500\n", " \n", " \n", - " Ewers, Sonia\n", + " Smith, Daniel\n", " $2,500\n", " \n", " \n", - " Basile, Rocco\n", - " $2,250\n", - " \n", - " \n", - " Okada, Chris\n", + " Lee, Michael\n", " $2,250\n", " \n", " \n", - " Ghershenzon, Mordechai\n", - " $2,000\n", + " Sutton, Loree\n", + " $2,166\n", " \n", " \n", - " Hidary, Abraham\n", - " $2,000\n", + " Ascher, Kate\n", + " $2,150\n", " \n", " \n", - " Donovan, Shaun\n", - " Milstein, Constance J\n", - " $5,100\n", + " sando, vicki\n", + " $2,135\n", " \n", " \n", - " Moore, John\n", - " $5,100\n", + " O'Neill, Hugh\n", + " $2,060\n", " \n", " \n", - " Zeiler, John\n", - " $5,100\n", + " O'Donnell, Charles\n", + " $2,025\n", " \n", " \n", - " Winn, Arthur\n", - " $5,100\n", + " walsh, sheila\n", + " $2,010\n", " \n", " \n", - " Elbaum, Abigail Black\n", - " $5,100\n", + " Farrier, Jasmine\n", + " $2,010\n", " \n", " \n", - " Clark, Ric\n", - " $5,100\n", + " McGuire, Raymond J\n", + " McGuire, Raymond J\n", + " $1,000,000\n", " \n", " \n", - " Wilson, John\n", - " $5,100\n", + " Williams-Isom, Anne\n", + " $15,300\n", " \n", " \n", - " Fish, John F\n", - " $5,100\n", + " Rohatyn, Jeanne Greenber\n", + " $11,200\n", " \n", " \n", - " Fisher, Winston\n", - " $5,100\n", + " Chenault, Kenneth\n", + " $10,200\n", " \n", " \n", - " Friedman, Eileen\n", - " $5,100\n", + " Adjmi, Marcus\n", + " $10,200\n", " \n", " \n", - " Trulson, Derek\n", - " $5,100\n", + " Gerson, Mark\n", + " $10,200\n", " \n", " \n", - " Brodsky, Daniel\n", - " $5,100\n", + " March, Stephanie\n", + " $10,200\n", " \n", " \n", - " DeBode, Gary\n", - " $5,100\n", + " Atkins, Peter\n", + " $10,200\n", " \n", " \n", - " Bernstein, Joshua\n", - " $5,100\n", + " Abramson, Carrie\n", + " $10,200\n", " \n", " \n", - " Greenberg, Mark\n", - " $5,100\n", + " Ross, Kara\n", + " $10,200\n", " \n", " \n", - " Stacom, Darcy\n", - " $5,100\n", + " Morales, Dianne\n", + " Weinberg, Jason\n", + " $6,000\n", " \n", " \n", - " Silverstein, Larry\n", - " $5,100\n", + " Weiss, Marina\n", + " $4,326\n", " \n", " \n", - " Silvers, Nicholas\n", - " $5,100\n", + " Gupta, Deepali\n", + " $2,802\n", " \n", " \n", - " KATZ, JEFFREY\n", - " $5,100\n", + " Frankel, Justin\n", + " $2,500\n", " \n", " \n", - " Bahar, Aaron\n", - " $5,100\n", + " Cole, Sarah\n", + " $2,461\n", " \n", " \n", - " olshan, andrea\n", - " $5,100\n", + " Little, Keith\n", + " $2,350\n", " \n", " \n", - " Sheller, Chris\n", - " $5,100\n", + " Matloob, Michael\n", + " $2,121\n", " \n", " \n", - " Burch, Melissa\n", - " $5,075\n", + " momeyer, alan\n", + " $2,100\n", " \n", " \n", - " Lake, Robert\n", - " $3,500\n", + " Shavers, Frances\n", + " $2,070\n", " \n", " \n", - " Martin, Rob\n", - " $3,000\n", + " Murray, Edward\n", + " $2,029\n", " \n", " \n", - " kuriloff, josh\n", - " $2,500\n", + " Stringer, Scott M\n", + " Guenther, Diane A\n", + " $10,200\n", " \n", " \n", - " Rubler, Neil\n", - " $2,500\n", + " Klein, John S\n", + " $10,100\n", " \n", " \n", - " Benenson, Lawrence\n", - " $2,500\n", + " Redhead, Fabian\n", + " $9,900\n", " \n", " \n", - " Coatsworth, Anna\n", - " $2,500\n", + " Wolf, Richard\n", + " $8,250\n", " \n", " \n", - " Wiener, Alan\n", - " $2,250\n", + " Quinlan, Robert\n", + " $7,900\n", " \n", " \n", - " Garcia, Kathryn A\n", - " Kerr, Zachary\n", - " $2,000\n", + " Zeckendorf, Arthur\n", + " $7,500\n", " \n", " \n", - " Koeppel, David J\n", - " $2,000\n", + " Lee Pak, Michelle\n", + " $7,100\n", " \n", " \n", - " Kalikow, Peter\n", - " $2,000\n", + " Pak, Chul\n", + " $7,100\n", " \n", " \n", - " MacArthur, Andrew\n", - " $2,000\n", + " Gelman, Audrey\n", + " $5,481\n", " \n", " \n", - " Mosler, Wendy\n", - " $2,000\n", + " Cohen, Steven\n", + " $5,475\n", " \n", " \n", - " Field, Michael\n", - " $2,000\n", + " Wiley, Maya D\n", + " Essex, Andrew\n", + " $4,600\n", " \n", " \n", - " Durst, Helena\n", - " $2,000\n", + " Segal, Evan\n", + " $4,000\n", " \n", " \n", - " Yatrakis, Demetrios\n", - " $1,500\n", + " Carter, Zachary\n", + " $4,000\n", " \n", " \n", - " Ezra, Brian\n", - " $1,400\n", + " Wang, Elizabeth\n", + " $3,500\n", " \n", " \n", - " Sheehan, Timothy\n", - " $1,300\n", + " Pinderhughes, Dianne\n", + " $3,400\n", " \n", " \n", - " Thypin, Benjamin\n", - " $1,250\n", + " Harb, Louise\n", + " $3,000\n", " \n", " \n", - " Wark, Jesse\n", - " $1,050\n", + " Tamagni, Jordan\n", + " $3,000\n", " \n", " \n", - " Ghossein, Yara\n", - " $1,000\n", + " Messing, Debra\n", + " $2,750\n", " \n", " \n", - " Hackett, Veronica\n", - " $750\n", + " Bluhdorn, Dominique\n", + " $2,750\n", " \n", " \n", - " Simkowitz, Chaim\n", - " $750\n", + " Spencer, Leslie\n", + " $2,500\n", " \n", " \n", - " Peterson, Douglas\n", - " $750\n", + " Yang, Andrew\n", + " Koo, Julia\n", + " $9,400\n", " \n", " \n", - " Gray, Katherine\n", - " $750\n", + " Lu, Tony\n", + " $4,470\n", " \n", " \n", - " Fruchthandler, Efraim\n", - " $750\n", + " Chen, Johnson\n", + " $4,300\n", " \n", " \n", - " Nigrelli, Randy\n", - " $700\n", + " Hu, Jordan\n", + " $4,000\n", " \n", " \n", - " Silber, Ryan\n", - " $500\n", + " Cornick, Kenneth\n", + " $4,000\n", " \n", " \n", - " Gans, Charles\n", - " $500\n", + " Bergman, Barry\n", + " $4,000\n", " \n", " \n", - " Cottingham, Martin\n", - " $500\n", + " Sun, Yeren\n", + " $4,000\n", " \n", " \n", - " Sirefman, Joshua\n", - " $500\n", - " \n", - " \n", - " cronin, denis\n", - " $500\n", - " \n", - " \n", - " Davis, Arlana\n", - " $500\n", - " \n", - " \n", - " Johnson, Michael\n", - " $500\n", - " \n", - " \n", - " Coatsworth, Anna\n", - " $500\n", - " \n", - " \n", - " Soule, Kim\n", - " $500\n", - " \n", - " \n", - " Chan, Joe\n", - " $500\n", - " \n", - " \n", - " Kaufman, Steven\n", - " $500\n", - " \n", - " \n", - " McGuire, Raymond J\n", - " Colacino, Michael\n", - " $8,433\n", - " \n", - " \n", - " Goldberg, Jeffrey\n", - " $5,100\n", - " \n", - " \n", - " Trulson, Derek\n", - " $5,100\n", - " \n", - " \n", - " DeWoody, Beth\n", - " $5,100\n", - " \n", - " \n", - " Elbaum, Abigail\n", - " $5,100\n", - " \n", - " \n", - " Farman-Farmaian, Patricia\n", - " $5,100\n", - " \n", - " \n", - " Feuerstein, Eric\n", - " $5,100\n", - " \n", - " \n", - " Flatto, Adam\n", - " $5,100\n", - " \n", - " \n", - " SK2 Holdings LLC\n", - " $5,100\n", - " \n", - " \n", - " Ruben, Richard\n", - " $5,100\n", - " \n", - " \n", - " Roth, Steven\n", - " $5,100\n", - " \n", - " \n", - " Goldberg, Andrew\n", - " $5,100\n", - " \n", - " \n", - " winter, benjamin\n", - " $5,100\n", - " \n", - " \n", - " Waterman III, Philip\n", - " $5,100\n", - " \n", - " \n", - " Reffkin, Robert\n", - " $5,100\n", - " \n", - " \n", - " Minskoff, Edward\n", - " $5,100\n", - " \n", - " \n", - " Milstein, Philip\n", - " $5,100\n", - " \n", - " \n", - " McKoin, Pamela\n", - " $5,100\n", - " \n", - " \n", - " Maslin, Scott\n", - " $5,100\n", - " \n", - " \n", - " Malkin, Anthony\n", - " $5,100\n", - " \n", - " \n", - " Mahfar, Samy\n", - " $5,100\n", - " \n", - " \n", - " Kalikow, Peter\n", - " $5,100\n", - " \n", - " \n", - " Klein, Michael\n", - " $5,100\n", - " \n", - " \n", - " Ledy, David\n", - " $5,100\n", - " \n", - " \n", - " Resnick, Scott\n", - " $5,100\n", - " \n", - " \n", - " Gevalt, Peter\n", - " $5,100\n", - " \n", - " \n", - " Boxer, Leonard\n", - " $5,100\n", - " \n", - " \n", - " Anderman, Drew\n", - " $5,100\n", - " \n", - " \n", - " Wilks, Jeffrey\n", - " $5,100\n", - " \n", - " \n", - " Brooks, Andrew\n", - " $5,100\n", - " \n", - " \n", - " Morales, Dianne\n", - " Rosenthal, Richard\n", - " $500\n", - " \n", - " \n", - " Neveloff, Jay\n", - " $400\n", - " \n", - " \n", - " Gonzalez, Teresa\n", - " $400\n", - " \n", - " \n", - " Fried, Daniel\n", - " $350\n", - " \n", - " \n", - " Parvizi, Nazli\n", - " $300\n", - " \n", - " \n", - " Takahashi, Ann\n", - " $250\n", - " \n", - " \n", - " Como, Anthony\n", - " $250\n", - " \n", - " \n", - " Selsam, Robert\n", - " $250\n", - " \n", - " \n", - " Jones, Marion\n", - " $200\n", - " \n", - " \n", - " Osterman, Thomas\n", - " $200\n", - " \n", - " \n", - " Pitta, Vincent\n", - " $150\n", - " \n", - " \n", - " Smith, Robert\n", - " $135\n", - " \n", - " \n", - " Yasui, Taylor\n", - " $100\n", - " \n", - " \n", - " Lugo, Betty\n", - " $100\n", - " \n", - " \n", - " Tabet, Maximilian\n", - " $100\n", - " \n", - " \n", - " Schwartz, Henry\n", - " $100\n", - " \n", - " \n", - " Farrell, William\n", - " $80\n", - " \n", - " \n", - " Karolidis, Stylianos\n", - " $75\n", - " \n", - " \n", - " George, Lauren\n", - " $52\n", - " \n", - " \n", - " Smith, Geoff\n", - " $50\n", - " \n", - " \n", - " chin, julia\n", - " $50\n", - " \n", - " \n", - " Lee, Annie\n", - " $50\n", - " \n", - " \n", - " Stearns, Roschel Holland\n", - " $50\n", - " \n", - " \n", - " Klemp, Alison\n", - " $50\n", - " \n", - " \n", - " Hipson, Edward\n", - " $50\n", - " \n", - " \n", - " Fardy, Matthew\n", - " $50\n", - " \n", - " \n", - " Crespo, Pedro\n", - " $50\n", - " \n", - " \n", - " Weiss, Peter\n", - " $50\n", - " \n", - " \n", - " Marino, Frank\n", - " $41\n", - " \n", - " \n", - " Lamorte, Rebecca\n", - " $39\n", - " \n", - " \n", - " Stringer, Scott M\n", - " Klein, John S\n", - " $10,100\n", - " \n", - " \n", - " Quinlan, Robert\n", - " $7,900\n", - " \n", - " \n", - " Fisher, Kenneth\n", - " $5,100\n", - " \n", - " \n", - " Siegel, Stephen B\n", - " $5,100\n", - " \n", - " \n", - " Fetner, Harold\n", - " $5,100\n", - " \n", - " \n", - " Brodsky, Thomas J\n", - " $5,100\n", - " \n", - " \n", - " Brodsky, Daniel\n", - " $5,100\n", - " \n", - " \n", - " Woo, Young\n", - " $5,100\n", - " \n", - " \n", - " Chu, Alex\n", - " $5,100\n", - " \n", - " \n", - " Fisher, Winston\n", - " $5,100\n", - " \n", - " \n", - " Rosen, Daniel\n", - " $5,100\n", - " \n", - " \n", - " Rubenstein, Howard J\n", - " $5,100\n", - " \n", - " \n", - " Hasbani, Jamil\n", - " $4,950\n", - " \n", - " \n", - " Barbanel, Lewis\n", - " $4,950\n", - " \n", - " \n", - " Penner, Arnold\n", - " $4,950\n", - " \n", - " \n", - " Kassin, Jack\n", - " $4,000\n", - " \n", - " \n", - " Mosler, Wendy\n", - " $2,500\n", - " \n", - " \n", - " Sherman, Randi Fetner\n", - " $2,500\n", - " \n", - " \n", - " Nasser, Ezra\n", - " $2,500\n", - " \n", - " \n", - " Brodsky, Alexander\n", - " $2,150\n", - " \n", - " \n", - " Mackie, Adam\n", - " $2,000\n", - " \n", - " \n", - " Sunshine, Kenneth\n", - " $2,000\n", - " \n", - " \n", - " Heller, Melvin S\n", - " $2,000\n", - " \n", - " \n", - " Lespinasse, Patrick\n", - " $2,000\n", - " \n", - " \n", - " Herman, Dorothy\n", - " $2,000\n", - " \n", - " \n", - " Milstein, Howard P\n", - " $2,000\n", - " \n", - " \n", - " Rubler, Neil\n", - " $2,000\n", - " \n", - " \n", - " Talve, Larry\n", - " $1,750\n", - " \n", - " \n", - " Haber, Toni\n", - " $1,250\n", - " \n", - " \n", - " Willkie, Hall F\n", - " $1,250\n", - " \n", - " \n", - " Wiley, Maya D\n", - " Shubert, William\n", - " $2,000\n", - " \n", - " \n", - " Khan, Fazeel\n", - " $2,000\n", - " \n", - " \n", - " Rubin, Alan\n", - " $1,750\n", - " \n", - " \n", - " Shaw Clouse, Michelle\n", - " $1,200\n", - " \n", - " \n", - " Johnson, Michael\n", - " $1,000\n", - " \n", - " \n", - " Hunnings, Ronald\n", - " $900\n", - " \n", - " \n", - " Zelermyer, Karen\n", - " $800\n", - " \n", - " \n", - " Walker, Jessica\n", - " $400\n", - " \n", - " \n", - " Norton, Charles Michael\n", - " $350\n", - " \n", - " \n", - " Schoening, Mark\n", - " $350\n", - " \n", - " \n", - " Richert, Ruthann\n", - " $275\n", - " \n", - " \n", - " Douglas, Jenny\n", - " $275\n", - " \n", - " \n", - " Sandidge, Cherene\n", - " $250\n", - " \n", - " \n", - " MARTINEZ, RAMON\n", - " $250\n", - " \n", - " \n", - " Fontas, George\n", - " $250\n", - " \n", - " \n", - " Ring, Susan\n", - " $250\n", - " \n", - " \n", - " Buurma, Jacob\n", - " $250\n", - " \n", - " \n", - " Goldberg, Jeffrey\n", - " $222\n", - " \n", - " \n", - " Klein, Scott\n", - " $200\n", - " \n", - " \n", - " Carter, Majora\n", - " $150\n", - " \n", - " \n", - " Smith, Kimberly\n", - " $150\n", - " \n", - " \n", - " Menken, Janis\n", - " $150\n", - " \n", - " \n", - " Shapiro, Nancy\n", - " $126\n", - " \n", - " \n", - " Stearns, Roschel Holland\n", - " $125\n", - " \n", - " \n", - " Smith, James\n", - " $125\n", - " \n", - " \n", - " Carter, David\n", - " $108\n", - " \n", - " \n", - " Jones, Robert\n", - " $103\n", - " \n", - " \n", - " Kramer, David\n", - " $100\n", - " \n", - " \n", - " Kramer, Ilona\n", - " $100\n", - " \n", - " \n", - " McFarlane Ebanks, JoAnn\n", - " $100\n", - " \n", - " \n", - " Yang, Andrew\n", - " Shiah, Patricia\n", - " $2,250\n", - " \n", - " \n", - " Pollack, Allan\n", - " $2,000\n", - " \n", - " \n", - " Wei, Nelson\n", - " $2,000\n", - " \n", - " \n", - " Russo, Greg\n", - " $2,000\n", - " \n", - " \n", - " Joseph, Panepinto A\n", - " $2,000\n", - " \n", - " \n", - " Verrone, Robert\n", - " $2,000\n", - " \n", - " \n", - " Milstein, Michael\n", - " $2,000\n", - " \n", - " \n", - " Huang, Patrick\n", - " $2,000\n", - " \n", - " \n", - " Dai, Shang\n", - " $2,000\n", - " \n", - " \n", - " Xu, George\n", - " $2,000\n", - " \n", - " \n", - " DeLilli, Mark\n", - " $2,000\n", - " \n", - " \n", - " Williams, Steven\n", - " $2,000\n", - " \n", - " \n", - " Ting, Spencer\n", - " $2,000\n", - " \n", - " \n", - " Krupa, Michael\n", - " $2,000\n", - " \n", - " \n", - " Naparstek, Abram\n", - " $2,000\n", - " \n", - " \n", - " Ferer, Christine\n", - " $2,000\n", - " \n", - " \n", - " Fisher, Kenneth\n", - " $2,000\n", - " \n", - " \n", - " Fisher, Winston\n", - " $2,000\n", - " \n", - " \n", - " Fishkind, Jason\n", - " $2,000\n", - " \n", - " \n", - " Tong, William\n", - " $2,000\n", - " \n", - " \n", - " Fung, William\n", - " $2,000\n", - " \n", - " \n", - " Mactaggart, Alastair\n", - " $2,000\n", - " \n", - " \n", - " Gosin, Barry\n", - " $2,000\n", - " \n", - " \n", - " Liu, Margaret H\n", - " $2,000\n", - " \n", - " \n", - " Smeke, Alberto\n", - " $2,000\n", - " \n", - " \n", - " Cohen, Michael\n", - " $2,000\n", - " \n", - " \n", - " Hahn, Young\n", - " $2,000\n", - " \n", - " \n", - " Brodsky, Daniel\n", - " $2,000\n", + " Emerson, Holly\n", + " $4,000\n", " \n", " \n", - " stanton, james\n", - " $2,000\n", + " Bernstein, Stephen\n", + " $4,000\n", " \n", " \n", - " Barry, Michael\n", - " $2,000\n", + " Diaco, Anthony\n", + " $4,000\n", " \n", " \n", "\n", "" ], "text/plain": [ - " AMNT\n", - "RECIPNAME NAME \n", - "Adams, Eric L Boutross, Diana $10,000\n", - " tamir, Elliot $5,100\n", - " Demirjian, Alexis $5,100\n", - " Borrok, Charles R. $5,100\n", - " Cohen, Adir $5,100\n", - " Berman, Nathan $5,100\n", - " Tawil, Eliot $5,100\n", - " Verrone, Robert $5,100\n", - " Schwartz, Yoel $5,000\n", - " Shurka, Manny $5,000\n", - " Landau, Solomon $5,000\n", - " Corman, Jeffrey $5,000\n", - " popkin, drew $4,000\n", - " Neamonitakis, Michael $4,000\n", - " Fisher, Avi $3,400\n", - " Vitucci Sr, Dominick $3,400\n", - " Ward, Jesse $3,400\n", - " Gindi, jeffrey $3,175\n", - " Anagnost, Dick $3,000\n", - " Levkov, Viacheslav $3,000\n", - " Silviano, John $3,000\n", - " Iannucci, Robert $2,500\n", - " Chassin, Jonathan $2,500\n", - " Marchi, Dean $2,500\n", - " Sciortino, Anthony $2,500\n", - " Ewers, Sonia $2,500\n", - " Basile, Rocco $2,250\n", - " Okada, Chris $2,250\n", - " Ghershenzon, Mordechai $2,000\n", - " Hidary, Abraham $2,000\n", - "Donovan, Shaun Milstein, Constance J $5,100\n", - " Moore, John $5,100\n", - " Zeiler, John $5,100\n", - " Winn, Arthur $5,100\n", - " Elbaum, Abigail Black $5,100\n", - " Clark, Ric $5,100\n", - " Wilson, John $5,100\n", - " Fish, John F $5,100\n", - " Fisher, Winston $5,100\n", - " Friedman, Eileen $5,100\n", - " Trulson, Derek $5,100\n", - " Brodsky, Daniel $5,100\n", - " DeBode, Gary $5,100\n", - " Bernstein, Joshua $5,100\n", - " Greenberg, Mark $5,100\n", - " Stacom, Darcy $5,100\n", - " Silverstein, Larry $5,100\n", - " Silvers, Nicholas $5,100\n", - " KATZ, JEFFREY $5,100\n", - " Bahar, Aaron $5,100\n", - " olshan, andrea $5,100\n", - " Sheller, Chris $5,100\n", - " Burch, Melissa $5,075\n", - " Lake, Robert $3,500\n", - " Martin, Rob $3,000\n", - " kuriloff, josh $2,500\n", - " Rubler, Neil $2,500\n", - " Benenson, Lawrence $2,500\n", - " Coatsworth, Anna $2,500\n", - " Wiener, Alan $2,250\n", - "Garcia, Kathryn A Kerr, Zachary $2,000\n", - " Koeppel, David J $2,000\n", - " Kalikow, Peter $2,000\n", - " MacArthur, Andrew $2,000\n", - " Mosler, Wendy $2,000\n", - " Field, Michael $2,000\n", - " Durst, Helena $2,000\n", - " Yatrakis, Demetrios $1,500\n", - " Ezra, Brian $1,400\n", - " Sheehan, Timothy $1,300\n", - " Thypin, Benjamin $1,250\n", - " Wark, Jesse $1,050\n", - " Ghossein, Yara $1,000\n", - " Hackett, Veronica $750\n", - " Simkowitz, Chaim $750\n", - " Peterson, Douglas $750\n", - " Gray, Katherine $750\n", - " Fruchthandler, Efraim $750\n", - " Nigrelli, Randy $700\n", - " Silber, Ryan $500\n", - " Gans, Charles $500\n", - " Cottingham, Martin $500\n", - " Sirefman, Joshua $500\n", - " cronin, denis $500\n", - " Davis, Arlana $500\n", - " Johnson, Michael $500\n", - " Coatsworth, Anna $500\n", - " Soule, Kim $500\n", - " Chan, Joe $500\n", - " Kaufman, Steven $500\n", - "McGuire, Raymond J Colacino, Michael $8,433\n", - " Goldberg, Jeffrey $5,100\n", - " Trulson, Derek $5,100\n", - " DeWoody, Beth $5,100\n", - " Elbaum, Abigail $5,100\n", - " Farman-Farmaian, Patricia $5,100\n", - " Feuerstein, Eric $5,100\n", - " Flatto, Adam $5,100\n", - " SK2 Holdings LLC $5,100\n", - " Ruben, Richard $5,100\n", - " Roth, Steven $5,100\n", - " Goldberg, Andrew $5,100\n", - " winter, benjamin $5,100\n", - " Waterman III, Philip $5,100\n", - " Reffkin, Robert $5,100\n", - " Minskoff, Edward $5,100\n", - " Milstein, Philip $5,100\n", - " McKoin, Pamela $5,100\n", - " Maslin, Scott $5,100\n", - " Malkin, Anthony $5,100\n", - " Mahfar, Samy $5,100\n", - " Kalikow, Peter $5,100\n", - " Klein, Michael $5,100\n", - " Ledy, David $5,100\n", - " Resnick, Scott $5,100\n", - " Gevalt, Peter $5,100\n", - " Boxer, Leonard $5,100\n", - " Anderman, Drew $5,100\n", - " Wilks, Jeffrey $5,100\n", - " Brooks, Andrew $5,100\n", - "Morales, Dianne Rosenthal, Richard $500\n", - " Neveloff, Jay $400\n", - " Gonzalez, Teresa $400\n", - " Fried, Daniel $350\n", - " Parvizi, Nazli $300\n", - " Takahashi, Ann $250\n", - " Como, Anthony $250\n", - " Selsam, Robert $250\n", - " Jones, Marion $200\n", - " Osterman, Thomas $200\n", - " Pitta, Vincent $150\n", - " Smith, Robert $135\n", - " Yasui, Taylor $100\n", - " Lugo, Betty $100\n", - " Tabet, Maximilian $100\n", - " Schwartz, Henry $100\n", - " Farrell, William $80\n", - " Karolidis, Stylianos $75\n", - " George, Lauren $52\n", - " Smith, Geoff $50\n", - " chin, julia $50\n", - " Lee, Annie $50\n", - " Stearns, Roschel Holland $50\n", - " Klemp, Alison $50\n", - " Hipson, Edward $50\n", - " Fardy, Matthew $50\n", - " Crespo, Pedro $50\n", - " Weiss, Peter $50\n", - " Marino, Frank $41\n", - " Lamorte, Rebecca $39\n", - "Stringer, Scott M Klein, John S $10,100\n", - " Quinlan, Robert $7,900\n", - " Fisher, Kenneth $5,100\n", - " Siegel, Stephen B $5,100\n", - " Fetner, Harold $5,100\n", - " Brodsky, Thomas J $5,100\n", - " Brodsky, Daniel $5,100\n", - " Woo, Young $5,100\n", - " Chu, Alex $5,100\n", - " Fisher, Winston $5,100\n", - " Rosen, Daniel $5,100\n", - " Rubenstein, Howard J $5,100\n", - " Hasbani, Jamil $4,950\n", - " Barbanel, Lewis $4,950\n", - " Penner, Arnold $4,950\n", - " Kassin, Jack $4,000\n", - " Mosler, Wendy $2,500\n", - " Sherman, Randi Fetner $2,500\n", - " Nasser, Ezra $2,500\n", - " Brodsky, Alexander $2,150\n", - " Mackie, Adam $2,000\n", - " Sunshine, Kenneth $2,000\n", - " Heller, Melvin S $2,000\n", - " Lespinasse, Patrick $2,000\n", - " Herman, Dorothy $2,000\n", - " Milstein, Howard P $2,000\n", - " Rubler, Neil $2,000\n", - " Talve, Larry $1,750\n", - " Haber, Toni $1,250\n", - " Willkie, Hall F $1,250\n", - "Wiley, Maya D Shubert, William $2,000\n", - " Khan, Fazeel $2,000\n", - " Rubin, Alan $1,750\n", - " Shaw Clouse, Michelle $1,200\n", - " Johnson, Michael $1,000\n", - " Hunnings, Ronald $900\n", - " Zelermyer, Karen $800\n", - " Walker, Jessica $400\n", - " Norton, Charles Michael $350\n", - " Schoening, Mark $350\n", - " Richert, Ruthann $275\n", - " Douglas, Jenny $275\n", - " Sandidge, Cherene $250\n", - " MARTINEZ, RAMON $250\n", - " Fontas, George $250\n", - " Ring, Susan $250\n", - " Buurma, Jacob $250\n", - " Goldberg, Jeffrey $222\n", - " Klein, Scott $200\n", - " Carter, Majora $150\n", - " Smith, Kimberly $150\n", - " Menken, Janis $150\n", - " Shapiro, Nancy $126\n", - " Stearns, Roschel Holland $125\n", - " Smith, James $125\n", - " Carter, David $108\n", - " Jones, Robert $103\n", - " Kramer, David $100\n", - " Kramer, Ilona $100\n", - " McFarlane Ebanks, JoAnn $100\n", - "Yang, Andrew Shiah, Patricia $2,250\n", - " Pollack, Allan $2,000\n", - " Wei, Nelson $2,000\n", - " Russo, Greg $2,000\n", - " Joseph, Panepinto A $2,000\n", - " Verrone, Robert $2,000\n", - " Milstein, Michael $2,000\n", - " Huang, Patrick $2,000\n", - " Dai, Shang $2,000\n", - " Xu, George $2,000\n", - " DeLilli, Mark $2,000\n", - " Williams, Steven $2,000\n", - " Ting, Spencer $2,000\n", - " Krupa, Michael $2,000\n", - " Naparstek, Abram $2,000\n", - " Ferer, Christine $2,000\n", - " Fisher, Kenneth $2,000\n", - " Fisher, Winston $2,000\n", - " Fishkind, Jason $2,000\n", - " Tong, William $2,000\n", - " Fung, William $2,000\n", - " Mactaggart, Alastair $2,000\n", - " Gosin, Barry $2,000\n", - " Liu, Margaret H $2,000\n", - " Smeke, Alberto $2,000\n", - " Cohen, Michael $2,000\n", - " Hahn, Young $2,000\n", - " Brodsky, Daniel $2,000\n", - " stanton, james $2,000\n", - " Barry, Michael $2,000" + " AMNT\n", + "RECIPNAME NAME \n", + "Adams, Eric L Bensusan, Danny $12,100\n", + " Waisman, Shai $10,200\n", + " Guzel, Murat $10,100\n", + " Singh, Navdeep $10,000\n", + " Serova, Daria $10,000\n", + " Boutross, Diana $10,000\n", + " Bartlett, Gregory $7,600\n", + " Karandikar, Satish $7,100\n", + " Akcetin, Mehmet $7,000\n", + " David, Emanuel $6,600\n", + "Donovan, Shaun Donovan, Shaun $19,100\n", + " Blumenstein, Ruth $15,300\n", + " Zabar, Eli $10,200\n", + " Fredericks, Devon $10,200\n", + " Bingham, Clara $10,200\n", + " Nolen, Eliot $10,200\n", + " Briganti, Stephen $10,200\n", + " Rockefeller, David $10,200\n", + " Goodman, Sara $10,150\n", + " Niejelow, Alexander $8,100\n", + "Garcia, Kathryn A Kramer, Mchael $2,500\n", + " Smith, Daniel $2,500\n", + " Lee, Michael $2,250\n", + " Sutton, Loree $2,166\n", + " Ascher, Kate $2,150\n", + " sando, vicki $2,135\n", + " O'Neill, Hugh $2,060\n", + " O'Donnell, Charles $2,025\n", + " walsh, sheila $2,010\n", + " Farrier, Jasmine $2,010\n", + "McGuire, Raymond J McGuire, Raymond J $1,000,000\n", + " Williams-Isom, Anne $15,300\n", + " Rohatyn, Jeanne Greenber $11,200\n", + " Chenault, Kenneth $10,200\n", + " Adjmi, Marcus $10,200\n", + " Gerson, Mark $10,200\n", + " March, Stephanie $10,200\n", + " Atkins, Peter $10,200\n", + " Abramson, Carrie $10,200\n", + " Ross, Kara $10,200\n", + "Morales, Dianne Weinberg, Jason $6,000\n", + " Weiss, Marina $4,326\n", + " Gupta, Deepali $2,802\n", + " Frankel, Justin $2,500\n", + " Cole, Sarah $2,461\n", + " Little, Keith $2,350\n", + " Matloob, Michael $2,121\n", + " momeyer, alan $2,100\n", + " Shavers, Frances $2,070\n", + " Murray, Edward $2,029\n", + "Stringer, Scott M Guenther, Diane A $10,200\n", + " Klein, John S $10,100\n", + " Redhead, Fabian $9,900\n", + " Wolf, Richard $8,250\n", + " Quinlan, Robert $7,900\n", + " Zeckendorf, Arthur $7,500\n", + " Lee Pak, Michelle $7,100\n", + " Pak, Chul $7,100\n", + " Gelman, Audrey $5,481\n", + " Cohen, Steven $5,475\n", + "Wiley, Maya D Essex, Andrew $4,600\n", + " Segal, Evan $4,000\n", + " Carter, Zachary $4,000\n", + " Wang, Elizabeth $3,500\n", + " Pinderhughes, Dianne $3,400\n", + " Harb, Louise $3,000\n", + " Tamagni, Jordan $3,000\n", + " Messing, Debra $2,750\n", + " Bluhdorn, Dominique $2,750\n", + " Spencer, Leslie $2,500\n", + "Yang, Andrew Koo, Julia $9,400\n", + " Lu, Tony $4,470\n", + " Chen, Johnson $4,300\n", + " Hu, Jordan $4,000\n", + " Cornick, Kenneth $4,000\n", + " Bergman, Barry $4,000\n", + " Sun, Yeren $4,000\n", + " Emerson, Holly $4,000\n", + " Bernstein, Stephen $4,000\n", + " Diaco, Anthony $4,000" ] }, "execution_count": 17, @@ -3256,14 +2460,14 @@ } ], "source": [ - "# Largest Real Estate Donors\n", - "largest_donors_per_candidate(flagged_donations_major_candidates, limit=30)" + "# Largest Flagged Donors\n", + "largest_donors_per_candidate(mayor_donations, limit=10)" ] }, { "cell_type": "code", "execution_count": 18, - "id": "sudden-footwear", + "id": "floppy-sector", "metadata": {}, "outputs": [], "source": [ @@ -3287,9 +2491,9 @@ " donations['cfb_link'] = donations['cfb_name'].apply(cfb_link)\n", " return donations.sort_values('AMNT', ascending=False)\n", "\n", - "def real_estate_donors_for(candidate):\n", + "def flagged_donors_for(candidate):\n", " columns = ['RECIPNAME', 'DATE', 'AMNT', 'NAME', 'ZIP', 'OCCUPATION', 'EMPNAME']\n", - " donations = flagged_donations_major_candidates[flagged_donations_major_candidates['RECIPNAME'] == candidate][columns]\n", + " donations = flagged_donations[flagged_donations['RECIPNAME'] == candidate][columns]\n", " donations[\"name\"] = donations[\"NAME\"].apply(to_person_name)\n", " donations.rename(columns={'NAME': 'cfb_name', 'OCCUPATION': 'cfb_occupation', 'EMPNAME': 'cfb_employer'}, inplace=True)\n", " donations['cfb_link'] = donations['cfb_name'].apply(functools.partial(cfb_link, only_mayor=True))\n", @@ -3299,7 +2503,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "spatial-rough", + "id": "circular-tissue", "metadata": {}, "outputs": [ { @@ -3515,13 +2719,13 @@ } ], "source": [ - "real_estate_donors_for('Donovan, Shaun').head(10)" + "flagged_donors_for('Donovan, Shaun').head(10)" ] }, { "cell_type": "code", "execution_count": 20, - "id": "backed-handling", + "id": "forbidden-evaluation", "metadata": {}, "outputs": [ { @@ -3548,13 +2752,13 @@ } ], "source": [ - "real_estate_donors_for('Adams, Eric L').head(10).info()" + "flagged_donors_for('Adams, Eric L').head(10).info()" ] }, { "cell_type": "code", "execution_count": 21, - "id": "dynamic-blocking", + "id": "engaging-rehabilitation", "metadata": {}, "outputs": [ { @@ -3575,7 +2779,7 @@ { "cell_type": "code", "execution_count": 22, - "id": "competent-shannon", + "id": "adjustable-tokyo", "metadata": {}, "outputs": [], "source": [ @@ -3586,8 +2790,8 @@ "# canddiate_top_donors.csv\n", "# see real_estate_donors_for() and all_top_donors_for()\n", "for cand in ['Adams, Eric L', 'Donovan, Shaun', 'Garcia, Kathryn A', 'McGuire, Raymond J', 'Stringer, Scott M', 'Yang, Andrew']:\n", - " path = f\"donations/{candidate_last_names.get(cand)}_top_realestate_donors.csv\"\n", - " real_estate_donors_for(cand).head(50).to_csv(path, index=False)\n", + " path = f\"donations/{candidate_last_names.get(cand)}_top_flagged_donors.csv\"\n", + " flagged_donors_for(cand).head(100).to_csv(path, index=False)\n", " \n", " path = f\"donations/{candidate_last_names.get(cand)}_top_donors.csv\"\n", " all_top_donors_for(cand).head(250).to_csv(path, index=False)\n", @@ -3597,7 +2801,7 @@ { "cell_type": "code", "execution_count": 23, - "id": "japanese-ethics", + "id": "fifth-tuner", "metadata": {}, "outputs": [ { @@ -3632,7 +2836,7 @@ " \n", " \n", " \n", - " Adams, Eric L\n", + " Adams, Eric L\n", " Boutross, Diana\n", " $10,000\n", " \n", @@ -3645,7 +2849,15 @@ " $5,100\n", " \n", " \n", - " Donovan, Shaun\n", + " Borrok, Charles R.\n", + " $5,100\n", + " \n", + " \n", + " Cohen, Adir\n", + " $5,100\n", + " \n", + " \n", + " Donovan, Shaun\n", " Milstein, Constance J\n", " $5,100\n", " \n", @@ -3658,7 +2870,15 @@ " $5,100\n", " \n", " \n", - " Garcia, Kathryn A\n", + " Winn, Arthur\n", + " $5,100\n", + " \n", + " \n", + " Elbaum, Abigail Black\n", + " $5,100\n", + " \n", + " \n", + " Garcia, Kathryn A\n", " Kerr, Zachary\n", " $2,000\n", " \n", @@ -3671,7 +2891,15 @@ " $2,000\n", " \n", " \n", - " McGuire, Raymond J\n", + " MacArthur, Andrew\n", + " $2,000\n", + " \n", + " \n", + " Mosler, Wendy\n", + " $2,000\n", + " \n", + " \n", + " McGuire, Raymond J\n", " Colacino, Michael\n", " $8,433\n", " \n", @@ -3684,7 +2912,15 @@ " $5,100\n", " \n", " \n", - " Morales, Dianne\n", + " DeWoody, Beth\n", + " $5,100\n", + " \n", + " \n", + " Elbaum, Abigail\n", + " $5,100\n", + " \n", + " \n", + " Morales, Dianne\n", " Rosenthal, Richard\n", " $500\n", " \n", @@ -3697,7 +2933,15 @@ " $400\n", " \n", " \n", - " Stringer, Scott M\n", + " Fried, Daniel\n", + " $350\n", + " \n", + " \n", + " Parvizi, Nazli\n", + " $300\n", + " \n", + " \n", + " Stringer, Scott M\n", " Klein, John S\n", " $10,100\n", " \n", @@ -3710,7 +2954,15 @@ " $5,100\n", " \n", " \n", - " Wiley, Maya D\n", + " Siegel, Stephen B\n", + " $5,100\n", + " \n", + " \n", + " Fetner, Harold\n", + " $5,100\n", + " \n", + " \n", + " Wiley, Maya D\n", " Shubert, William\n", " $2,000\n", " \n", @@ -3723,7 +2975,15 @@ " $1,750\n", " \n", " \n", - " Yang, Andrew\n", + " Shaw Clouse, Michelle\n", + " $1,200\n", + " \n", + " \n", + " Johnson, Michael\n", + " $1,000\n", + " \n", + " \n", + " Yang, Andrew\n", " Shiah, Patricia\n", " $2,250\n", " \n", @@ -3735,6 +2995,14 @@ " Wei, Nelson\n", " $2,000\n", " \n", + " \n", + " Russo, Greg\n", + " $2,000\n", + " \n", + " \n", + " Joseph, Panepinto A\n", + " $2,000\n", + " \n", " \n", "\n", "" @@ -3745,27 +3013,43 @@ "Adams, Eric L Boutross, Diana $10,000\n", " tamir, Elliot $5,100\n", " Demirjian, Alexis $5,100\n", + " Borrok, Charles R. $5,100\n", + " Cohen, Adir $5,100\n", "Donovan, Shaun Milstein, Constance J $5,100\n", " Moore, John $5,100\n", " Zeiler, John $5,100\n", + " Winn, Arthur $5,100\n", + " Elbaum, Abigail Black $5,100\n", "Garcia, Kathryn A Kerr, Zachary $2,000\n", " Koeppel, David J $2,000\n", " Kalikow, Peter $2,000\n", + " MacArthur, Andrew $2,000\n", + " Mosler, Wendy $2,000\n", "McGuire, Raymond J Colacino, Michael $8,433\n", " Goldberg, Jeffrey $5,100\n", " Trulson, Derek $5,100\n", + " DeWoody, Beth $5,100\n", + " Elbaum, Abigail $5,100\n", "Morales, Dianne Rosenthal, Richard $500\n", " Neveloff, Jay $400\n", " Gonzalez, Teresa $400\n", + " Fried, Daniel $350\n", + " Parvizi, Nazli $300\n", "Stringer, Scott M Klein, John S $10,100\n", " Quinlan, Robert $7,900\n", " Fisher, Kenneth $5,100\n", + " Siegel, Stephen B $5,100\n", + " Fetner, Harold $5,100\n", "Wiley, Maya D Shubert, William $2,000\n", " Khan, Fazeel $2,000\n", " Rubin, Alan $1,750\n", + " Shaw Clouse, Michelle $1,200\n", + " Johnson, Michael $1,000\n", "Yang, Andrew Shiah, Patricia $2,250\n", " Pollack, Allan $2,000\n", - " Wei, Nelson $2,000" + " Wei, Nelson $2,000\n", + " Russo, Greg $2,000\n", + " Joseph, Panepinto A $2,000" ] }, "execution_count": 23, @@ -3775,13 +3059,13 @@ ], "source": [ "# Top Real Estate Donors\n", - "largest_donors_per_candidate(flagged_donations_major_candidates, limit=3)" + "largest_donors_per_candidate(flagged_donations, limit=5)" ] }, { "cell_type": "code", "execution_count": 24, - "id": "blocked-luxury", + "id": "eight-arbitration", "metadata": {}, "outputs": [], "source": [ @@ -3797,7 +3081,7 @@ { "cell_type": "code", "execution_count": 25, - "id": "entire-accessory", + "id": "harmful-engineer", "metadata": {}, "outputs": [], "source": [ @@ -3811,13 +3095,13 @@ "\n", "\n", "all_top_donors = top_donors_for(mayor_donations, head=50)\n", - "top_real_estate_donors = top_donors_for(flagged_donations, head=50)\n" + "top_flagged_donors = top_donors_for(flagged_donations, head=50)\n" ] }, { "cell_type": "code", "execution_count": 26, - "id": "independent-ottawa", + "id": "banned-wrestling", "metadata": {}, "outputs": [ { @@ -3851,19 +3135,19 @@ " 0\n", " Winston Fisher\n", " $14,200\n", - " Stringer, Donovan, Adams, Yang\n", + " Donovan, Stringer, Yang, Adams\n", " \n", " \n", " 1\n", " Derek Trulson\n", " $12,200\n", - " McGuire, Donovan, Adams\n", + " Donovan, Adams, McGuire\n", " \n", " \n", " 2\n", " Daniel Brodsky\n", " $12,200\n", - " Stringer, Donovan, Yang\n", + " Donovan, Stringer, Yang\n", " \n", " \n", " 3\n", @@ -3881,7 +3165,7 @@ " 5\n", " Kenneth Fisher\n", " $9,100\n", - " Stringer, Adams, Yang\n", + " Yang, Stringer, Adams\n", " \n", " \n", " 6\n", @@ -3899,7 +3183,7 @@ " 8\n", " John Wilson\n", " $7,610\n", - " McGuire, Donovan, Yang\n", + " Donovan, Yang, McGuire\n", " \n", " \n", " 9\n", @@ -3917,13 +3201,13 @@ " 11\n", " Robert Verrone\n", " $7,100\n", - " Adams, Yang\n", + " Yang, Adams\n", " \n", " \n", " 12\n", " Peter Kalikow\n", " $7,100\n", - " Garcia, McGuire\n", + " McGuire, Garcia\n", " \n", " \n", " 13\n", @@ -3941,13 +3225,13 @@ " 15\n", " Patricia Farman-Farmaian\n", " $6,100\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 16\n", " David Ledy\n", " $6,100\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 17\n", @@ -3965,13 +3249,13 @@ " 19\n", " Michael Klein\n", " $5,350\n", - " Stringer, McGuire\n", + " McGuire, Stringer\n", " \n", " \n", " 20\n", " Jeffrey Goldberg\n", " $5,322\n", - " McGuire, Wiley\n", + " Wiley, McGuire\n", " \n", " \n", " 21\n", @@ -4153,27 +3437,27 @@ ], "text/plain": [ " Donor Name Amount Supported Candidates\n", - "0 Winston Fisher $14,200 Stringer, Donovan, Adams, Yang\n", - "1 Derek Trulson $12,200 McGuire, Donovan, Adams\n", - "2 Daniel Brodsky $12,200 Stringer, Donovan, Yang\n", + "0 Winston Fisher $14,200 Donovan, Stringer, Yang, Adams\n", + "1 Derek Trulson $12,200 Donovan, Adams, McGuire\n", + "2 Daniel Brodsky $12,200 Donovan, Stringer, Yang\n", "3 John S Klein $10,100 Stringer\n", "4 Diana Boutross $10,000 Adams\n", - "5 Kenneth Fisher $9,100 Stringer, Adams, Yang\n", + "5 Kenneth Fisher $9,100 Yang, Stringer, Adams\n", "6 Michael Colacino $8,433 McGuire\n", "7 Robert Quinlan $7,900 Stringer\n", - "8 John Wilson $7,610 McGuire, Donovan, Yang\n", + "8 John Wilson $7,610 Donovan, Yang, McGuire\n", "9 Andrew Brooks $7,100 McGuire, Adams\n", "10 Steven Williams $7,100 McGuire, Yang\n", - "11 Robert Verrone $7,100 Adams, Yang\n", - "12 Peter Kalikow $7,100 Garcia, McGuire\n", + "11 Robert Verrone $7,100 Yang, Adams\n", + "12 Peter Kalikow $7,100 McGuire, Garcia\n", "13 Richard Ruben $7,100 McGuire, Adams\n", "14 Sanford Sirulnick $7,000 McGuire, Adams\n", - "15 Patricia Farman-Farmaian $6,100 McGuire, Donovan\n", - "16 David Ledy $6,100 McGuire, Donovan\n", + "15 Patricia Farman-Farmaian $6,100 Donovan, McGuire\n", + "16 David Ledy $6,100 Donovan, McGuire\n", "17 Lewis Barbanel $5,625 Stringer, Garcia, Adams\n", "18 Nicholas Silvers $5,500 Donovan, Adams\n", - "19 Michael Klein $5,350 Stringer, McGuire\n", - "20 Jeffrey Goldberg $5,322 McGuire, Wiley\n", + "19 Michael Klein $5,350 McGuire, Stringer\n", + "20 Jeffrey Goldberg $5,322 Wiley, McGuire\n", "21 Eric Feuerstein $5,100 McGuire\n", "22 andrea olshan $5,100 Donovan\n", "23 Scott Maslin $5,100 McGuire\n", @@ -4211,13 +3495,13 @@ } ], "source": [ - "top_real_estate_donors" + "top_flagged_donors" ] }, { "cell_type": "code", "execution_count": 27, - "id": "overhead-idaho", + "id": "local-campbell", "metadata": {}, "outputs": [ { @@ -4263,7 +3547,7 @@ " 2\n", " Anne Williams-Isom\n", " $17,300\n", - " McGuire, Wiley\n", + " Wiley, McGuire\n", " \n", " \n", " 3\n", @@ -4275,97 +3559,97 @@ " 4\n", " Allison Lutnick\n", " $15,300\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 5\n", " John Petry\n", " $14,200\n", - " Garcia, Yang, Adams, McGuire\n", + " McGuire, Yang, Garcia, Adams\n", " \n", " \n", " 6\n", " Winston Fisher\n", " $14,200\n", - " Stringer, Donovan, Adams, Yang\n", + " Donovan, Stringer, Yang, Adams\n", " \n", " \n", " 7\n", " James Tisch\n", " $14,200\n", - " Garcia, Adams, McGuire\n", + " McGuire, Garcia, Adams\n", " \n", " \n", " 8\n", " Steven Rattner\n", " $14,200\n", - " Stringer, McGuire, Donovan, Adams\n", + " Donovan, Stringer, Adams, McGuire\n", " \n", " \n", " 9\n", " Judith Rubin\n", " $13,050\n", - " Morales, Donovan, Garcia, Stringer, McGuire, Yang\n", + " Donovan, Yang, McGuire, Morales, Stringer, Garcia\n", " \n", " \n", " 10\n", " Daniel Lowy\n", " $12,635\n", - " Donovan, Wiley, McGuire, Adams, Yang\n", + " Donovan, Yang, Adams, McGuire, Wiley\n", " \n", " \n", " 11\n", " Josh Silverman\n", " $12,600\n", - " Stringer, McGuire, Donovan, Adams\n", + " Donovan, Stringer, Adams, McGuire\n", " \n", " \n", " 12\n", " James Dolan\n", " $12,200\n", - " McGuire, Donovan, Adams\n", + " Donovan, Adams, McGuire\n", " \n", " \n", " 13\n", " Kevin Ryan\n", " $12,200\n", - " McGuire, Donovan, Yang\n", + " Donovan, Yang, McGuire\n", " \n", " \n", " 14\n", " Stephanie Coleman\n", " $12,200\n", - " McGuire, Donovan, Yang\n", + " Donovan, Yang, McGuire\n", " \n", " \n", " 15\n", " Ricky Sandler\n", " $12,200\n", - " McGuire, Donovan, Yang\n", + " Donovan, Yang, McGuire\n", " \n", " \n", " 16\n", " Derek Trulson\n", " $12,200\n", - " McGuire, Donovan, Adams\n", + " Donovan, Adams, McGuire\n", " \n", " \n", " 17\n", " Daniel Brodsky\n", " $12,200\n", - " Stringer, Donovan, Yang\n", + " Donovan, Stringer, Yang\n", " \n", " \n", " 18\n", " Robert Verrone\n", " $12,200\n", - " McGuire, Adams, Yang\n", + " McGuire, Yang, Adams\n", " \n", " \n", " 19\n", " Sara Goodman\n", " $12,150\n", - " Stringer, Donovan\n", + " Donovan, Stringer\n", " \n", " \n", " 20\n", @@ -4377,25 +3661,25 @@ " 21\n", " Michael Kempner\n", " $12,100\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 22\n", " Robert Sharp\n", " $12,000\n", - " Stringer, McGuire\n", + " McGuire, Stringer\n", " \n", " \n", " 23\n", " Michael Lynton\n", " $12,000\n", - " Stringer, Donovan, Yang, Wiley\n", + " Donovan, Stringer, Yang, Wiley\n", " \n", " \n", " 24\n", " David Rockefeller\n", " $11,450\n", - " McGuire, Donovan, Wiley\n", + " Donovan, Wiley, McGuire\n", " \n", " \n", " 25\n", @@ -4407,31 +3691,31 @@ " 26\n", " Chris Hughes\n", " $11,100\n", - " Stringer, Garcia, Donovan, Adams\n", + " Donovan, Stringer, Garcia, Adams\n", " \n", " \n", " 27\n", " Katherine Bradley\n", " $11,100\n", - " Garcia, Yang, Adams, McGuire\n", + " McGuire, Yang, Garcia, Adams\n", " \n", " \n", " 28\n", " Frederick Wilson\n", " $11,100\n", - " Stringer, Garcia, Donovan, Yang\n", + " Donovan, Stringer, Yang, Garcia\n", " \n", " \n", " 29\n", " Andrew Albstein\n", " $10,600\n", - " Garcia, Adams, McGuire\n", + " McGuire, Garcia, Adams\n", " \n", " \n", " 30\n", " Arthur Zeckendorf\n", " $10,500\n", - " Stringer, Adams, Yang\n", + " Yang, Stringer, Adams\n", " \n", " \n", " 31\n", @@ -4443,7 +3727,7 @@ " 32\n", " Mary Ford\n", " $10,450\n", - " Morales, McGuire\n", + " McGuire, Morales\n", " \n", " \n", " 33\n", @@ -4461,7 +3745,7 @@ " 35\n", " Tony Coles\n", " $10,200\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 36\n", @@ -4497,7 +3781,7 @@ " 41\n", " Peter Georgescu\n", " $10,200\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 42\n", @@ -4509,7 +3793,7 @@ " 43\n", " John J Mack\n", " $10,200\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 44\n", @@ -4539,7 +3823,7 @@ " 48\n", " Steve Lipin\n", " $10,200\n", - " McGuire, Donovan\n", + " Donovan, McGuire\n", " \n", " \n", " 49\n", @@ -4607,53 +3891,53 @@ " Supported Candidates \n", "0 McGuire \n", "1 Donovan \n", - "2 McGuire, Wiley \n", + "2 Wiley, McGuire \n", "3 Donovan \n", - "4 McGuire, Donovan \n", - "5 Garcia, Yang, Adams, McGuire \n", - "6 Stringer, Donovan, Adams, Yang \n", - "7 Garcia, Adams, McGuire \n", - "8 Stringer, McGuire, Donovan, Adams \n", - "9 Morales, Donovan, Garcia, Stringer, McGuire, Yang \n", - "10 Donovan, Wiley, McGuire, Adams, Yang \n", - "11 Stringer, McGuire, Donovan, Adams \n", - "12 McGuire, Donovan, Adams \n", - "13 McGuire, Donovan, Yang \n", - "14 McGuire, Donovan, Yang \n", - "15 McGuire, Donovan, Yang \n", - "16 McGuire, Donovan, Adams \n", - "17 Stringer, Donovan, Yang \n", - "18 McGuire, Adams, Yang \n", - "19 Stringer, Donovan \n", + "4 Donovan, McGuire \n", + "5 McGuire, Yang, Garcia, Adams \n", + "6 Donovan, Stringer, Yang, Adams \n", + "7 McGuire, Garcia, Adams \n", + "8 Donovan, Stringer, Adams, McGuire \n", + "9 Donovan, Yang, McGuire, Morales, Stringer, Garcia \n", + "10 Donovan, Yang, Adams, McGuire, Wiley \n", + "11 Donovan, Stringer, Adams, McGuire \n", + "12 Donovan, Adams, McGuire \n", + "13 Donovan, Yang, McGuire \n", + "14 Donovan, Yang, McGuire \n", + "15 Donovan, Yang, McGuire \n", + "16 Donovan, Adams, McGuire \n", + "17 Donovan, Stringer, Yang \n", + "18 McGuire, Yang, Adams \n", + "19 Donovan, Stringer \n", "20 Adams \n", - "21 McGuire, Donovan \n", - "22 Stringer, McGuire \n", - "23 Stringer, Donovan, Yang, Wiley \n", - "24 McGuire, Donovan, Wiley \n", + "21 Donovan, McGuire \n", + "22 McGuire, Stringer \n", + "23 Donovan, Stringer, Yang, Wiley \n", + "24 Donovan, Wiley, McGuire \n", "25 McGuire \n", - "26 Stringer, Garcia, Donovan, Adams \n", - "27 Garcia, Yang, Adams, McGuire \n", - "28 Stringer, Garcia, Donovan, Yang \n", - "29 Garcia, Adams, McGuire \n", - "30 Stringer, Adams, Yang \n", + "26 Donovan, Stringer, Garcia, Adams \n", + "27 McGuire, Yang, Garcia, Adams \n", + "28 Donovan, Stringer, Yang, Garcia \n", + "29 McGuire, Garcia, Adams \n", + "30 Yang, Stringer, Adams \n", "31 McGuire, Adams \n", - "32 Morales, McGuire \n", + "32 McGuire, Morales \n", "33 Stringer, Adams \n", "34 McGuire \n", - "35 McGuire, Donovan \n", + "35 Donovan, McGuire \n", "36 McGuire, Adams \n", "37 Donovan \n", "38 McGuire \n", "39 McGuire \n", "40 Donovan \n", - "41 McGuire, Donovan \n", + "41 Donovan, McGuire \n", "42 Adams \n", - "43 McGuire, Donovan \n", + "43 Donovan, McGuire \n", "44 McGuire \n", "45 McGuire \n", "46 Donovan \n", "47 Donovan \n", - "48 McGuire, Donovan \n", + "48 Donovan, McGuire \n", "49 McGuire " ] }, @@ -4669,7 +3953,7 @@ { "cell_type": "code", "execution_count": 28, - "id": "adolescent-inspector", + "id": "harmful-bottom", "metadata": {}, "outputs": [ { @@ -4723,8 +4007,8 @@ " \n", " \n", " Retired\n", - " 585065.19\n", - " 1639\n", + " 643109.50\n", + " 1821\n", " \n", " \n", " Paul Weiss\n", @@ -4767,26 +4051,21 @@ " 114\n", " \n", " \n", + " Google\n", + " 60280.63\n", + " 472\n", + " \n", + " \n", " Columbia University\n", " 54285.88\n", " 421\n", " \n", " \n", - " Google\n", - " 53283.68\n", - " 406\n", - " \n", - " \n", " City of New York\n", " 50477.85\n", " 679\n", " \n", " \n", - " retired\n", - " 46738.31\n", - " 117\n", - " \n", - " \n", " Pershing Square Capital Manage\n", " 43200.00\n", " 11\n", @@ -4797,12 +4076,12 @@ " 361\n", " \n", " \n", - " Monroe College\n", + " Sullivan & Cromwell LLP\n", " 38430.00\n", " 37\n", " \n", " \n", - " Sullivan & Cromwell LLP\n", + " Monroe College\n", " 38430.00\n", " 37\n", " \n", @@ -5117,14 +4396,14 @@ " 9\n", " \n", " \n", - " Union Square Ventures\n", + " Wachtell, Lipton, Rosen & Kat\n", " 13100.00\n", - " 5\n", + " 7\n", " \n", " \n", - " Wachtell, Lipton, Rosen & Kat\n", + " Union Square Ventures\n", " 13100.00\n", - " 7\n", + " 5\n", " \n", " \n", " Gibson Dunn\n", @@ -5142,14 +4421,14 @@ " 3\n", " \n", " \n", - " KSK Construction Group LLC\n", + " MSG\n", " 12700.00\n", - " 10\n", + " 5\n", " \n", " \n", - " MSG\n", + " KSK Construction Group LLC\n", " 12700.00\n", - " 5\n", + " 10\n", " \n", " \n", " EMU Health\n", @@ -5207,6 +4486,11 @@ " 6\n", " \n", " \n", + " WSB Partners\n", + " 12000.00\n", + " 6\n", + " \n", + " \n", " Lowenstein Sandler LLP\n", " 11950.00\n", " 6\n", @@ -5221,7 +4505,7 @@ "EMPNAME \n", "Not Employed 4957472.69 39042\n", "Self Employed 2982305.87 10165\n", - "Retired 585065.19 1639\n", + "Retired 643109.50 1821\n", "Paul Weiss 206473.42 129\n", "Citigroup 159711.71 232\n", "Homemaker 118064.00 197\n", @@ -5230,14 +4514,13 @@ "Wachtell, Lipton, Rosen & Katz 73825.00 57\n", "Greenberg Traurig 69275.00 35\n", "None 68661.46 114\n", + "Google 60280.63 472\n", "Columbia University 54285.88 421\n", - "Google 53283.68 406\n", "City of New York 50477.85 679\n", - "retired 46738.31 117\n", "Pershing Square Capital Manage 43200.00 11\n", "NYU 42834.59 361\n", - "Monroe College 38430.00 37\n", "Sullivan & Cromwell LLP 38430.00 37\n", + "Monroe College 38430.00 37\n", "Kirkland & Ellis LLP 37184.04 28\n", "Lazard 37000.00 10\n", "Centerview Partners 34600.00 8\n", @@ -5300,13 +4583,13 @@ "Goldman Sachs 13570.42 45\n", "NYCDOE 13480.76 294\n", "Spencer Stuart 13315.00 9\n", - "Union Square Ventures 13100.00 5\n", "Wachtell, Lipton, Rosen & Kat 13100.00 7\n", + "Union Square Ventures 13100.00 5\n", "Gibson Dunn 12850.00 17\n", "cushman and wakefield 12850.00 5\n", "Centerview Partners LLC 12700.00 3\n", - "KSK Construction Group LLC 12700.00 10\n", "MSG 12700.00 5\n", + "KSK Construction Group LLC 12700.00 10\n", "EMU Health 12635.00 6\n", "A&E Real Estate 12600.00 4\n", "Harvard University 12500.00 31\n", @@ -5318,6 +4601,7 @@ "Bensusan Restaurant Corp 12100.00 3\n", "Gravity Construction 12000.00 3\n", "Sacks & Sacks LLP 12000.00 6\n", + "WSB Partners 12000.00 6\n", "Lowenstein Sandler LLP 11950.00 6" ] }, @@ -5334,7 +4618,7 @@ { "cell_type": "code", "execution_count": 29, - "id": "acceptable-pierce", + "id": "injured-conducting", "metadata": {}, "outputs": [ { @@ -5388,8 +4672,8 @@ " \n", " \n", " Retired\n", - " 1240461.35\n", - " 7439\n", + " 1427245.94\n", + " 9343\n", " \n", " \n", " Paul Weiss\n", @@ -5417,16 +4701,16 @@ " 1958\n", " \n", " \n", - " retired\n", - " 113041.51\n", - " 931\n", - " \n", - " \n", " Skadden Arps\n", " 111034.00\n", " 130\n", " \n", " \n", + " Google\n", + " 110113.68\n", + " 981\n", + " \n", + " \n", " Columbia University\n", " 106625.45\n", " 1064\n", @@ -5437,11 +4721,6 @@ " 119\n", " \n", " \n", - " Google\n", - " 94978.37\n", - " 827\n", - " \n", - " \n", " None\n", " 92445.38\n", " 460\n", @@ -5472,11 +4751,6 @@ " 746\n", " \n", " \n", - " RETIRED\n", - " 73733.08\n", - " 972\n", - " \n", - " \n", " NYC Council\n", " 65695.98\n", " 779\n", @@ -5626,6 +4900,16 @@ " 27640.21\n", " 150\n", " \n", + " \n", + " Hayes & Simon, PC\n", + " 27550.00\n", + " 5\n", + " \n", + " \n", + " Brookdale Hospital\n", + " 27365.00\n", + " 174\n", + " \n", " \n", "\n", "" @@ -5636,24 +4920,22 @@ "EMPNAME \n", "Self Employed 7368034.39 39735\n", "Not Employed 7170836.20 59056\n", - "Retired 1240461.35 7439\n", + "Retired 1427245.94 9343\n", "Paul Weiss 254804.42 301\n", "Homemaker 241004.30 677\n", "Citigroup 180437.71 391\n", "City of New York 154396.44 2104\n", "NYC DOE 120176.42 1958\n", - "retired 113041.51 931\n", "Skadden Arps 111034.00 130\n", + "Google 110113.68 981\n", "Columbia University 106625.45 1064\n", "Monroe College 105040.00 119\n", - "Google 94978.37 827\n", "None 92445.38 460\n", "Wachtell, Lipton, Rosen & Katz 88039.00 96\n", "Self Employee 85985.00 117\n", "Greenberg Traurig 81610.00 100\n", "NYPD 77357.30 877\n", "NYU 73842.59 746\n", - "RETIRED 73733.08 972\n", "NYC Council 65695.98 779\n", "NYCDOE 65563.89 1001\n", "NYC Department of Education 60814.10 763\n", @@ -5683,7 +4965,9 @@ "Verizon 31025.30 301\n", "Broadway Stages 28850.00 36\n", "Willkie Farr & Gallagher LLP 28831.00 43\n", - "Bloomberg 27640.21 150" + "Bloomberg 27640.21 150\n", + "Hayes & Simon, PC 27550.00 5\n", + "Brookdale Hospital 27365.00 174" ] }, "execution_count": 29, @@ -5699,7 +4983,7 @@ { "cell_type": "code", "execution_count": 30, - "id": "naval-enclosure", + "id": "associate-constraint", "metadata": {}, "outputs": [ { @@ -5786,7 +5070,7 @@ } ], "source": [ - "sum_from_real_estate = flagged_donations_major_candidates[['RECIPNAME', 'AMNT']].groupby('RECIPNAME').sum()\n", + "sum_from_real_estate = flagged_donations[['RECIPNAME', 'AMNT']].groupby('RECIPNAME').sum()\n", "sum_from_real_estate = sum_from_real_estate.sort_values(by='AMNT', ascending=False)\n", "sum_from_real_estate['AMNT'] = sum_from_real_estate['AMNT'].apply(to_money)\n", "\n", @@ -5795,70 +5079,78 @@ }, { "cell_type": "code", - "execution_count": 31, - "id": "convertible-princess", + "execution_count": 65, + "id": "recreational-sheffield", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", + "
Name Total Real Estate Lobbyist
\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", "
Name Total Flag Real Estate Lobbyist
Raymond J McGuire$10,093,818$285,375$34,200Raymond J McGuire$10,093,818$318,276$285,375$34,200
Eric L Adams$4,739,061$289,243$16,700Eric L Adams$4,739,061$299,143$289,243$16,700
Andrew Yang$3,600,747$112,529$8,773Andrew Yang$3,600,747$121,662$112,529$8,773
Shaun Donovan$2,858,059$189,402$11,872Shaun Donovan$2,858,059$199,999$189,402$11,872
Scott M Stringer$2,839,137$151,556$14,935Scott M Stringer$2,839,137$161,316$151,556$14,935
Maya D Wiley$1,598,117$13,477$4,669Maya D Wiley$1,598,117$17,146$13,477$4,669
Kathryn A Garcia$1,242,811$56,531$6,825Kathryn A Garcia$1,242,811$62,056$56,531$6,825
Dianne Morales$860,549$3,197$1,464Dianne Morales$860,549$4,661$3,197$1,464
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 31, + "execution_count": 65, "metadata": {}, "output_type": "execute_result" } @@ -5867,23 +5159,26 @@ "total_amount_recieved = mayor_donations[[\"RECIPNAME\", \"AMNT\"]].groupby(\"RECIPNAME\").sum().sort_values(by='RECIPNAME')\n", "total_amount_recieved[\"Real Estate\"] = mayor_donations[mayor_donations['is_realestate']][['RECIPNAME', 'AMNT']].groupby('RECIPNAME').sum().sort_values(by='RECIPNAME')\n", "total_amount_recieved[\"Lobbyist\"] = mayor_donations[mayor_donations['is_lobbyist']][['RECIPNAME', 'AMNT']].groupby('RECIPNAME').sum().sort_values(by='RECIPNAME')\n", + "total_amount_recieved[\"Flag\"] = mayor_donations[mayor_donations['flag']][['RECIPNAME', 'AMNT']].groupby('RECIPNAME').sum().sort_values(by='RECIPNAME')\n", + "\n", "# total_amount_recieved[\"Corporation\"] = mayor_donations[mayor_donations['is_corporation']][['RECIPNAME', 'AMNT']].groupby('RECIPNAME').sum().sort_values(by='RECIPNAME')\n", "\n", "total_amount_recieved = total_amount_recieved.reset_index().sort_values(by='AMNT', ascending=False)\n", "\n", "total_amount_recieved['Name'] = total_amount_recieved['RECIPNAME'].apply(to_person_name)\n", "total_amount_recieved[\"Total\"] = total_amount_recieved[\"AMNT\"].apply(to_money)\n", + "total_amount_recieved[\"Flag\"] = total_amount_recieved[\"Flag\"].apply(to_money)\n", "total_amount_recieved[\"Real Estate\"] = total_amount_recieved[\"Real Estate\"].apply(to_money)\n", "total_amount_recieved[\"Lobbyist\"] = total_amount_recieved[\"Lobbyist\"].apply(to_money)\n", "\n", "\n", - "total_amount_recieved[['Name', 'Total', 'Real Estate', 'Lobbyist']].style.hide_index()" + "total_amount_recieved[['Name', 'Total', 'Flag', 'Real Estate', 'Lobbyist']].style.hide_index()" ] }, { "cell_type": "code", "execution_count": 32, - "id": "digital-voltage", + "id": "aging-silence", "metadata": {}, "outputs": [ { @@ -5899,13 +5194,13 @@ ], "source": [ "# Total of all donations to all major candidates\n", - "to_money(flagged_donations_major_candidates['AMNT'].sum())" + "to_money(flagged_donations['AMNT'].sum())" ] }, { "cell_type": "code", "execution_count": 33, - "id": "operating-wildlife", + "id": "vocational-jewel", "metadata": {}, "outputs": [ { @@ -5920,13 +5215,13 @@ } ], "source": [ - "flagged_donations_major_candidates['AMNT'].sum() / mayor_donations['AMNT'].sum() * 100" + "flagged_donations['AMNT'].sum() / mayor_donations['AMNT'].sum() * 100" ] }, { "cell_type": "code", "execution_count": 34, - "id": "ethical-payroll", + "id": "written-excitement", "metadata": {}, "outputs": [], "source": [ @@ -5944,7 +5239,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "modular-hurricane", + "id": "beneficial-trustee", "metadata": {}, "outputs": [ { @@ -6040,8 +5335,8 @@ " \n", " McGuire, Raymond J\n", " Retired\n", - " 306499.97\n", - " 273\n", + " 332368.12\n", + " 292\n", " \n", " \n", " Garcia, Kathryn A\n", @@ -6086,16 +5381,22 @@ " 167\n", " \n", " \n", + " Adams, Eric L\n", + " Retired\n", + " 135593.00\n", + " 507\n", + " \n", + " \n", " Garcia, Kathryn A\n", " Self Employed\n", " 126161.75\n", " 816\n", " \n", " \n", - " Adams, Eric L\n", + " Stringer, Scott M\n", " Retired\n", - " 109607.00\n", - " 393\n", + " 102503.88\n", + " 677\n", " \n", " \n", " McGuire, Raymond J\n", @@ -6104,12 +5405,6 @@ " 85\n", " \n", " \n", - " Stringer, Scott M\n", - " Retired\n", - " 96573.88\n", - " 642\n", - " \n", - " \n", " Adams, Eric L\n", " Self Employee\n", " 85935.00\n", @@ -6152,8 +5447,8 @@ " \n", " Wiley, Maya D\n", " Retired\n", - " 44677.63\n", - " 277\n", + " 44687.63\n", + " 278\n", " \n", " \n", " McGuire, Raymond J\n", @@ -6212,17 +5507,12 @@ " 220\n", " \n", " \n", - " McGuire, Raymond J\n", + " McGuire, Raymond J\n", " Kirkland & Ellis\n", " 26600.00\n", " 11\n", " \n", " \n", - " retired\n", - " 25868.15\n", - " 19\n", - " \n", - " \n", " PJT Partners\n", " 24600.00\n", " 10\n", @@ -6242,8 +5532,8 @@ " \n", " Donovan, Shaun\n", " Retired\n", - " 22180.00\n", - " 10\n", + " 22250.00\n", + " 15\n", " \n", " \n", " Garcia, Kathryn A\n", @@ -6277,6 +5567,12 @@ " 19400.00\n", " 14\n", " \n", + " \n", + " Yang, Andrew\n", + " Google\n", + " 19196.84\n", + " 182\n", + " \n", " \n", "\n", "" @@ -6293,7 +5589,7 @@ "Stringer, Scott M Not Employed 486720.92 4354\n", "Wiley, Maya D Not Employed 449755.00 10824\n", "Donovan, Shaun Self Employed 334462.84 580\n", - "McGuire, Raymond J Retired 306499.97 273\n", + "McGuire, Raymond J Retired 332368.12 292\n", "Garcia, Kathryn A Not Employed 271229.44 2331\n", "Stringer, Scott M Self Employed 248975.50 1186\n", "Yang, Andrew Self Employed 221548.79 1754\n", @@ -6301,10 +5597,10 @@ "McGuire, Raymond J Paul Weiss 198390.42 99\n", "Wiley, Maya D Self Employed 190220.25 2292\n", "McGuire, Raymond J Citigroup 151267.71 167\n", + "Adams, Eric L Retired 135593.00 507\n", "Garcia, Kathryn A Self Employed 126161.75 816\n", - "Adams, Eric L Retired 109607.00 393\n", + "Stringer, Scott M Retired 102503.88 677\n", "McGuire, Raymond J Skadden Arps 96935.00 85\n", - "Stringer, Scott M Retired 96573.88 642\n", "Adams, Eric L Self Employee 85935.00 116\n", "Morales, Dianne Self Employed 68460.74 1046\n", "Stringer, Scott M Homemaker 67195.00 108\n", @@ -6312,7 +5608,7 @@ " None 64133.46 49\n", " Wachtell, Lipton, Rosen & Katz 58600.00 29\n", "Adams, Eric L Homemaker 45639.00 82\n", - "Wiley, Maya D Retired 44677.63 277\n", + "Wiley, Maya D Retired 44687.63 278\n", "McGuire, Raymond J Pershing Square Capital Manage 39200.00 9\n", " Lazard 36600.00 9\n", "Adams, Eric L Not Employed 36372.00 300\n", @@ -6324,17 +5620,17 @@ " Kirkland & Ellis LLP 28925.00 20\n", "Adams, Eric L NYPD 28775.00 220\n", "McGuire, Raymond J Kirkland & Ellis 26600.00 11\n", - " retired 25868.15 19\n", " PJT Partners 24600.00 10\n", "Donovan, Shaun Mediaocean 24161.00 46\n", "McGuire, Raymond J Long Pond Capital 23900.00 6\n", - "Donovan, Shaun Retired 22180.00 10\n", + "Donovan, Shaun Retired 22250.00 15\n", "Garcia, Kathryn A City of New York 21665.65 246\n", "McGuire, Raymond J Cleary Gottlieb Steen & Hamilt 21450.00 13\n", " Compass 21150.21 23\n", " Greenberg Traurig, LLP 20700.00 5\n", " Standard Industries 19800.00 6\n", - " Willkie Farr & Gallagher LLP 19400.00 14" + " Willkie Farr & Gallagher LLP 19400.00 14\n", + "Yang, Andrew Google 19196.84 182" ] }, "execution_count": 35, @@ -6350,7 +5646,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "outstanding-mileage", + "id": "changing-there", "metadata": {}, "outputs": [], "source": [ @@ -6384,7 +5680,7 @@ { "cell_type": "code", "execution_count": 37, - "id": "intensive-hawaii", + "id": "positive-guide", "metadata": {}, "outputs": [ { @@ -6414,7 +5710,7 @@ { "cell_type": "code", "execution_count": 38, - "id": "drawn-raising", + "id": "likely-civilian", "metadata": {}, "outputs": [ { @@ -6462,7 +5758,7 @@ { "cell_type": "code", "execution_count": 39, - "id": "documentary-brand", + "id": "satisfactory-spread", "metadata": {}, "outputs": [ { @@ -6494,24 +5790,24 @@ { "cell_type": "code", "execution_count": 40, - "id": "three-manner", + "id": "demanding-january", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'name': 'Google',\n", - " 'sum': 53484,\n", - " 'recipients': ['Andrew Yang $18,252',\n", - " 'Raymond J McGuire $12,065',\n", - " 'Kathryn A Garcia $7,810',\n", - " 'Dianne Morales $6,012',\n", + " 'sum': 60281,\n", + " 'recipients': ['Andrew Yang $19,197',\n", + " 'Raymond J McGuire $13,165',\n", + " 'Dianne Morales $10,024',\n", + " 'Kathryn A Garcia $7,960',\n", " 'Shaun Donovan $3,335',\n", - " 'Maya D Wiley $3,004',\n", - " 'Scott M Stringer $2,605',\n", - " 'Eric L Adams $400'],\n", - " 'donor_count': 240,\n", - " 'donor_avg': '$223'}" + " 'Maya D Wiley $3,144',\n", + " 'Scott M Stringer $3,005',\n", + " 'Eric L Adams $450'],\n", + " 'donor_count': 274,\n", + " 'donor_avg': '$220'}" ] }, "execution_count": 40, @@ -6526,7 +5822,7 @@ { "cell_type": "code", "execution_count": 41, - "id": "european-identification", + "id": "applicable-station", "metadata": { "tags": [] }, @@ -6560,7 +5856,7 @@ { "cell_type": "code", "execution_count": 42, - "id": "caroline-style", + "id": "arctic-faculty", "metadata": {}, "outputs": [ { @@ -6587,7 +5883,7 @@ { "cell_type": "code", "execution_count": 43, - "id": "organizational-salad", + "id": "removable-nicholas", "metadata": {}, "outputs": [ { @@ -6612,7 +5908,38 @@ { "cell_type": "code", "execution_count": 44, - "id": "renewable-burning", + "id": "sufficient-substitute", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'name': 'NYPD',\n", + " 'sum': 34416,\n", + " 'recipients': ['Eric L Adams $31,825',\n", + " 'Andrew Yang $908',\n", + " 'Kathryn A Garcia $700',\n", + " 'Maya D Wiley $485',\n", + " 'Raymond J McGuire $248',\n", + " 'Dianne Morales $135',\n", + " 'Scott M Stringer $115'],\n", + " 'donor_count': 187,\n", + " 'donor_avg': '$184'}" + ] + }, + "execution_count": 44, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "employer_donations_summary(\"NYPD\")" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "id": "collaborative-flexibility", "metadata": { "tags": [] }, @@ -6625,8 +5952,8 @@ }, { "cell_type": "code", - "execution_count": 45, - "id": "close-storage", + "execution_count": 46, + "id": "usual-stage", "metadata": {}, "outputs": [ { @@ -7546,7 +6873,7 @@ "[1530 rows x 59 columns]" ] }, - "execution_count": 45, + "execution_count": 46, "metadata": {}, "output_type": "execute_result" } @@ -7557,8 +6884,8 @@ }, { "cell_type": "code", - "execution_count": 46, - "id": "meaning-syria", + "execution_count": 47, + "id": "impressed-technician", "metadata": {}, "outputs": [ { @@ -8478,7 +7805,7 @@ "[6465 rows x 59 columns]" ] }, - "execution_count": 46, + "execution_count": 47, "metadata": {}, "output_type": "execute_result" } @@ -8489,8 +7816,8 @@ }, { "cell_type": "code", - "execution_count": 47, - "id": "assumed-choir", + "execution_count": 48, + "id": "removable-affairs", "metadata": {}, "outputs": [ { @@ -8499,7 +7826,7 @@ "'734 lobbyists have given $319,369 to mayoral candidates'" ] }, - "execution_count": 47, + "execution_count": 48, "metadata": {}, "output_type": "execute_result" } @@ -8513,8 +7840,8 @@ }, { "cell_type": "code", - "execution_count": 48, - "id": "aerial-confidentiality", + "execution_count": 49, + "id": "stunning-audit", "metadata": {}, "outputs": [ { @@ -8523,7 +7850,7 @@ "'147 corporate lobbyists have given $99,439 to mayoral candidates'" ] }, - "execution_count": 48, + "execution_count": 49, "metadata": {}, "output_type": "execute_result" } @@ -8537,8 +7864,8 @@ }, { "cell_type": "code", - "execution_count": 49, - "id": "suspected-fiction", + "execution_count": 50, + "id": "seven-projector", "metadata": {}, "outputs": [ { @@ -8789,7 +8116,7 @@ " Fisher, Kenneth $2,000" ] }, - "execution_count": 49, + "execution_count": 50, "metadata": {}, "output_type": "execute_result" } @@ -8800,8 +8127,8 @@ }, { "cell_type": "code", - "execution_count": 50, - "id": "simple-prince", + "execution_count": 51, + "id": "disabled-dividend", "metadata": {}, "outputs": [ { @@ -9052,7 +8379,7 @@ " Jones, Robert $400" ] }, - "execution_count": 50, + "execution_count": 51, "metadata": {}, "output_type": "execute_result" } @@ -9063,8 +8390,8 @@ }, { "cell_type": "code", - "execution_count": 51, - "id": "genetic-heath", + "execution_count": 52, + "id": "engaged-drama", "metadata": {}, "outputs": [], "source": [ @@ -9076,8 +8403,8 @@ }, { "cell_type": "code", - "execution_count": 52, - "id": "listed-store", + "execution_count": 53, + "id": "latter-animation", "metadata": {}, "outputs": [ { @@ -9158,7 +8485,7 @@ "Wiley, Maya D $19,562" ] }, - "execution_count": 52, + "execution_count": 53, "metadata": {}, "output_type": "execute_result" } @@ -9170,8 +8497,8 @@ }, { "cell_type": "code", - "execution_count": 53, - "id": "virgin-papua", + "execution_count": 54, + "id": "tested-satellite", "metadata": {}, "outputs": [ { @@ -9252,7 +8579,7 @@ "Morales, Dianne $1,464" ] }, - "execution_count": 53, + "execution_count": 54, "metadata": {}, "output_type": "execute_result" } @@ -9264,8 +8591,8 @@ }, { "cell_type": "code", - "execution_count": 54, - "id": "imperial-vietnam", + "execution_count": 55, + "id": "dedicated-optics", "metadata": {}, "outputs": [], "source": [ @@ -9274,8 +8601,8 @@ }, { "cell_type": "code", - "execution_count": 55, - "id": "impaired-indication", + "execution_count": 56, + "id": "reserved-machinery", "metadata": {}, "outputs": [ { @@ -9374,7 +8701,7 @@ "[504 rows x 1 columns]" ] }, - "execution_count": 55, + "execution_count": 56, "metadata": {}, "output_type": "execute_result" } @@ -9385,8 +8712,8 @@ }, { "cell_type": "code", - "execution_count": 56, - "id": "broad-ecuador", + "execution_count": 57, + "id": "involved-effect", "metadata": {}, "outputs": [ { @@ -9677,7 +9004,7 @@ "Yeger, Kalman $4,033" ] }, - "execution_count": 56, + "execution_count": 57, "metadata": {}, "output_type": "execute_result" } @@ -9688,24 +9015,158 @@ }, { "cell_type": "code", - "execution_count": 57, - "id": "bearing-pendant", + "execution_count": 58, + "id": "comparable-scout", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "'$946,716'" + "'$319,369'" ] }, - "execution_count": 57, + "execution_count": 58, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "to_money(lobbyist_contributions['AMNT'].sum())" + ] + }, + { + "cell_type": "code", + "execution_count": 59, + "id": "unique-sharing", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'$1,184,259'" + ] + }, + "execution_count": 59, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "to_money(flagged_donations['AMNT'].sum())" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "id": "imported-leonard", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "RECIPNAME EMPNAME \n", + "Adams, Eric L NYPD 28775.00\n", + " Tashkent Supermarket 16000.00\n", + " KSK Construction Group LLC 12700.00\n", + " Bensusan Restaurant Corp 12100.00\n", + " Gravity Construction 12000.00\n", + " S&L Aerospace Metals 10700.00\n", + " Broadway Stages Ltd 10500.00\n", + " Ferguson & Shamaimian Architec 10200.00\n", + " Prime Clark 10200.00\n", + " Morgan Stanley 10150.00\n", + "Donovan, Shaun Mediaocean 24161.00\n", + " Peloton 15300.00\n", + " Mastercard 12720.00\n", + " Statue of Liberty-Ellis Island 10300.00\n", + " Blue Hill 10250.00\n", + " Johnston Marklee 10200.00\n", + " Ogden CAP Properties, LLC 10200.00\n", + " Columbia University 10070.00\n", + " NYU 8805.00\n", + " CBRE 8275.00\n", + "Garcia, Kathryn A City of New York 21665.65\n", + " DSNY 19044.07\n", + " Jane Street Capital 9000.00\n", + " Google 7960.00\n", + " NYC 7189.00\n", + " Sullivan & Cromwell 6000.00\n", + " NYC Department of Sanitation 5976.00\n", + " City of NY 5619.42\n", + " Columbia University 5407.00\n", + " Goldman Sachs 5025.00\n", + "McGuire, Raymond J Paul Weiss 198390.42\n", + " Citigroup 151267.71\n", + " Skadden Arps 96935.00\n", + " Greenberg Traurig 64550.00\n", + " Wachtell, Lipton, Rosen & Katz 58600.00\n", + " Pershing Square Capital Manage 39200.00\n", + " Lazard 36600.00\n", + " Sullivan & Cromwell LLP 35050.00\n", + " Skadden Arps Slate Meagher & F 33800.00\n", + " Cravath, Swaine & Moore LLP 31100.00\n", + "Morales, Dianne Google 10024.42\n", + " NYC DOE 8320.92\n", + " City of New York 5110.58\n", + " NYU 4636.73\n", + " Columbia University 4419.41\n", + " Columbia University Medical Ce 4325.98\n", + " NYCDOE 4317.81\n", + " CUNY 4047.52\n", + " New York University 4016.70\n", + " DOE 3029.44\n", + "Stringer, Scott M Monroe College 32400.00\n", + " Fisher Brothers 15300.00\n", + " The Brodsky Organization 12350.00\n", + " Sacks & Sacks LLP 12000.00\n", + " Brown Weinraub 10550.00\n", + " Rubenstein Communications 10050.00\n", + " Kramer Dillof Livingston Moore 10000.00\n", + " Wachtell, Lipton, Rosen & Katz 9900.00\n", + " Terra Holdings 8550.00\n", + " Columbia University 7904.00\n", + "Wiley, Maya D Columbia University 12180.03\n", + " NYU 9466.46\n", + " City of New York 8450.20\n", + " The New School 8367.51\n", + " Perkins Coie LLP 7457.05\n", + " Kramer Levin 7000.00\n", + " CUNY 6347.00\n", + " Monroe College 6030.00\n", + " Jay Street Ventures 4600.00\n", + " Open Society Foundations 4460.00\n", + "Yang, Andrew Google 19196.84\n", + " WSB Partners 12000.00\n", + " Third Point LLC 9250.00\n", + " Columbia University 8711.43\n", + " Panepinto Properties 8000.00\n", + " WFG 6480.00\n", + " RTW Investments 6000.00\n", + " Urby 5700.00\n", + " Bank of America 5391.42\n", + " Roundhouse inc 5320.00\n", + "Name: AMNT, dtype: float64" + ] + }, + "execution_count": 60, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "to_money(all_lobbyist_contributions['AMNT'].sum())" + "# see: https://stackoverflow.com/questions/27842613/pandas-groupby-sort-within-groups\n", + "\n", + "exclude_empname = ['Not Employed', 'Self Employed', 'Retired', 'Self Employee', 'Homemaker', 'None', '-']\n", + "mayor_donations[~mayor_donations['EMPNAME'].isin(exclude_empname)][['RECIPNAME', 'AMNT', 'EMPNAME']].groupby(['RECIPNAME', 'EMPNAME']).agg({'AMNT': 'sum'})['AMNT'].groupby('RECIPNAME', group_keys=False).nlargest(10)\n" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "premier-improvement", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {