Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 286 additions & 0 deletions ScatterPlot.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,286 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Unnamed: 0</th>\n",
" <th>advisories</th>\n",
" <th>category</th>\n",
" <th>cause</th>\n",
" <th>charityName</th>\n",
" <th>charityNavigatorURL</th>\n",
" <th>currentRating</th>\n",
" <th>donationAddress</th>\n",
" <th>ein</th>\n",
" <th>irsClassification</th>\n",
" <th>mailingAddress</th>\n",
" <th>mission</th>\n",
" <th>orgID</th>\n",
" <th>organization</th>\n",
" <th>tagLine</th>\n",
" <th>websiteURL</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>{'severity': None, 'active': {'_rapid_links': ...</td>\n",
" <td>{'categoryName': 'Research and Public Policy',...</td>\n",
" <td>{'causeID': 35, 'causeName': 'Non-Medical Scie...</td>\n",
" <td>Mount Desert Island Biological Laboratory</td>\n",
" <td>https://www.charitynavigator.org/?bay=search.s...</td>\n",
" <td>{'score': 92.61, 'ratingID': 131800, 'publicat...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>10202467</td>\n",
" <td>{'deductibility': 'Contributions are deductibl...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>The MDI Biological Laboratory is a rapidly gro...</td>\n",
" <td>5954</td>\n",
" <td>{'charityName': 'Mount Desert Island Biologica...</td>\n",
" <td>Connecting Science, Environment, and Health</td>\n",
" <td>http://www.mdibl.org/</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>{'severity': None, 'active': {'_rapid_links': ...</td>\n",
" <td>{'categoryName': 'Community Development', 'cat...</td>\n",
" <td>{'causeID': 42, 'causeName': 'United Ways', 'c...</td>\n",
" <td>United Way of Eastern Maine</td>\n",
" <td>https://www.charitynavigator.org/?bay=search.s...</td>\n",
" <td>{'score': 81.84, 'ratingID': 138738, 'publicat...</td>\n",
" <td>NaN</td>\n",
" <td>10211478</td>\n",
" <td>{'deductibility': 'Contributions are deductibl...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>Working with the communities we serve, the Uni...</td>\n",
" <td>12517</td>\n",
" <td>{'charityName': 'United Way of Eastern Maine',...</td>\n",
" <td>Live united</td>\n",
" <td>https://www.unitedwayem.org/</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2</td>\n",
" <td>{'severity': None, 'active': {'_rapid_links': ...</td>\n",
" <td>{'categoryName': 'Health', 'categoryID': 5, 'c...</td>\n",
" <td>{'causeID': 14, 'causeName': 'Medical Research...</td>\n",
" <td>The Jackson Laboratory</td>\n",
" <td>https://www.charitynavigator.org/?bay=search.s...</td>\n",
" <td>{'score': 93.16, 'ratingID': 131608, 'publicat...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>10211513</td>\n",
" <td>{'deductibility': 'Contributions are deductibl...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>The Jackson Laboratory, founded in 1929, is an...</td>\n",
" <td>3916</td>\n",
" <td>{'charityName': 'The Jackson Laboratory', 'ein...</td>\n",
" <td>Leading the search for tomorrow's cures</td>\n",
" <td>http://www.jax.org</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>3</td>\n",
" <td>{'severity': None, 'active': {'_rapid_links': ...</td>\n",
" <td>{'categoryName': 'Arts, Culture, Humanities', ...</td>\n",
" <td>{'causeID': 6, 'causeName': 'Libraries, Histor...</td>\n",
" <td>Maine Historical Society</td>\n",
" <td>https://www.charitynavigator.org/?bay=search.s...</td>\n",
" <td>{'score': 80.31, 'ratingID': 124121, 'publicat...</td>\n",
" <td>NaN</td>\n",
" <td>10211530</td>\n",
" <td>{'deductibility': 'Contributions are deductibl...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>Founded in 1822, the Maine Historical Society ...</td>\n",
" <td>15533</td>\n",
" <td>{'charityName': 'Maine Historical Society', 'e...</td>\n",
" <td>Preserving history, engaging minds, connecting...</td>\n",
" <td>http://www.mainehistory.org/</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>4</td>\n",
" <td>{'severity': None, 'active': {'_rapid_links': ...</td>\n",
" <td>{'categoryName': 'Human Services', 'categoryID...</td>\n",
" <td>{'causeID': 16, 'causeName': 'Youth Developmen...</td>\n",
" <td>Boys &amp; Girls Clubs of Southern Maine</td>\n",
" <td>https://www.charitynavigator.org/?bay=search.s...</td>\n",
" <td>{'score': 91.54, 'ratingID': 135033, 'publicat...</td>\n",
" <td>NaN</td>\n",
" <td>10211543</td>\n",
" <td>{'deductibility': 'Contributions are deductibl...</td>\n",
" <td>{'country': None, 'stateOrProvince': 'ME', 'ci...</td>\n",
" <td>For more than 100 years, Boys &amp; Girls Clubs of...</td>\n",
" <td>15222</td>\n",
" <td>{'charityName': 'Boys &amp; Girls Clubs of Souther...</td>\n",
" <td>Great Futures Start Here</td>\n",
" <td>http://www.bgcmaine.org/home</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Unnamed: 0 advisories \\\n",
"0 0 {'severity': None, 'active': {'_rapid_links': ... \n",
"1 1 {'severity': None, 'active': {'_rapid_links': ... \n",
"2 2 {'severity': None, 'active': {'_rapid_links': ... \n",
"3 3 {'severity': None, 'active': {'_rapid_links': ... \n",
"4 4 {'severity': None, 'active': {'_rapid_links': ... \n",
"\n",
" category \\\n",
"0 {'categoryName': 'Research and Public Policy',... \n",
"1 {'categoryName': 'Community Development', 'cat... \n",
"2 {'categoryName': 'Health', 'categoryID': 5, 'c... \n",
"3 {'categoryName': 'Arts, Culture, Humanities', ... \n",
"4 {'categoryName': 'Human Services', 'categoryID... \n",
"\n",
" cause \\\n",
"0 {'causeID': 35, 'causeName': 'Non-Medical Scie... \n",
"1 {'causeID': 42, 'causeName': 'United Ways', 'c... \n",
"2 {'causeID': 14, 'causeName': 'Medical Research... \n",
"3 {'causeID': 6, 'causeName': 'Libraries, Histor... \n",
"4 {'causeID': 16, 'causeName': 'Youth Developmen... \n",
"\n",
" charityName \\\n",
"0 Mount Desert Island Biological Laboratory \n",
"1 United Way of Eastern Maine \n",
"2 The Jackson Laboratory \n",
"3 Maine Historical Society \n",
"4 Boys & Girls Clubs of Southern Maine \n",
"\n",
" charityNavigatorURL \\\n",
"0 https://www.charitynavigator.org/?bay=search.s... \n",
"1 https://www.charitynavigator.org/?bay=search.s... \n",
"2 https://www.charitynavigator.org/?bay=search.s... \n",
"3 https://www.charitynavigator.org/?bay=search.s... \n",
"4 https://www.charitynavigator.org/?bay=search.s... \n",
"\n",
" currentRating \\\n",
"0 {'score': 92.61, 'ratingID': 131800, 'publicat... \n",
"1 {'score': 81.84, 'ratingID': 138738, 'publicat... \n",
"2 {'score': 93.16, 'ratingID': 131608, 'publicat... \n",
"3 {'score': 80.31, 'ratingID': 124121, 'publicat... \n",
"4 {'score': 91.54, 'ratingID': 135033, 'publicat... \n",
"\n",
" donationAddress ein \\\n",
"0 {'country': None, 'stateOrProvince': 'ME', 'ci... 10202467 \n",
"1 NaN 10211478 \n",
"2 {'country': None, 'stateOrProvince': 'ME', 'ci... 10211513 \n",
"3 NaN 10211530 \n",
"4 NaN 10211543 \n",
"\n",
" irsClassification \\\n",
"0 {'deductibility': 'Contributions are deductibl... \n",
"1 {'deductibility': 'Contributions are deductibl... \n",
"2 {'deductibility': 'Contributions are deductibl... \n",
"3 {'deductibility': 'Contributions are deductibl... \n",
"4 {'deductibility': 'Contributions are deductibl... \n",
"\n",
" mailingAddress \\\n",
"0 {'country': None, 'stateOrProvince': 'ME', 'ci... \n",
"1 {'country': None, 'stateOrProvince': 'ME', 'ci... \n",
"2 {'country': None, 'stateOrProvince': 'ME', 'ci... \n",
"3 {'country': None, 'stateOrProvince': 'ME', 'ci... \n",
"4 {'country': None, 'stateOrProvince': 'ME', 'ci... \n",
"\n",
" mission orgID \\\n",
"0 The MDI Biological Laboratory is a rapidly gro... 5954 \n",
"1 Working with the communities we serve, the Uni... 12517 \n",
"2 The Jackson Laboratory, founded in 1929, is an... 3916 \n",
"3 Founded in 1822, the Maine Historical Society ... 15533 \n",
"4 For more than 100 years, Boys & Girls Clubs of... 15222 \n",
"\n",
" organization \\\n",
"0 {'charityName': 'Mount Desert Island Biologica... \n",
"1 {'charityName': 'United Way of Eastern Maine',... \n",
"2 {'charityName': 'The Jackson Laboratory', 'ein... \n",
"3 {'charityName': 'Maine Historical Society', 'e... \n",
"4 {'charityName': 'Boys & Girls Clubs of Souther... \n",
"\n",
" tagLine \\\n",
"0 Connecting Science, Environment, and Health \n",
"1 Live united \n",
"2 Leading the search for tomorrow's cures \n",
"3 Preserving history, engaging minds, connecting... \n",
"4 Great Futures Start Here \n",
"\n",
" websiteURL \n",
"0 http://www.mdibl.org/ \n",
"1 https://www.unitedwayem.org/ \n",
"2 http://www.jax.org \n",
"3 http://www.mainehistory.org/ \n",
"4 http://www.bgcmaine.org/home "
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%matplotlib inline\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import numpy as np\n",
"\n",
"charity_data = \"All_Organizations.csv\"\n",
"charity_df = pd.read_csv(\"All_Organizations.csv\")\n",
"charity_df.head()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}