Skip to content

Commit

Permalink
speciesgrids docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterprovoost committed Oct 9, 2024
1 parent c1787a7 commit 7bc8a6d
Showing 1 changed file with 3 additions and 186 deletions.
189 changes: 3 additions & 186 deletions notebooks/Python/speciesgrids_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,192 +15,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4e208851c92f4f51b4aa4c3bddd86d27",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"FloatProgress(value=0.0, layout=Layout(width='auto'), style=ProgressStyle(bar_color='black'))"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"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>species</th>\n",
" <th>records</th>\n",
" <th>min_year</th>\n",
" <th>max_year</th>\n",
" <th>source_obis</th>\n",
" <th>source_gbif</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Larus argentatus</td>\n",
" <td>1118392.0</td>\n",
" <td>1837.0</td>\n",
" <td>2024.0</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Larus fuscus</td>\n",
" <td>84912.0</td>\n",
" <td>1964.0</td>\n",
" <td>2024.0</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Larus canus</td>\n",
" <td>11298.0</td>\n",
" <td>1953.0</td>\n",
" <td>2024.0</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Larus ridibundus</td>\n",
" <td>9528.0</td>\n",
" <td>1911.0</td>\n",
" <td>2024.0</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Phalacrocorax carbo</td>\n",
" <td>8610.0</td>\n",
" <td>1910.0</td>\n",
" <td>2024.0</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1620</th>\n",
" <td>Wandonia haliotis</td>\n",
" <td>1.0</td>\n",
" <td>2015.0</td>\n",
" <td>2015.0</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1621</th>\n",
" <td>Raja undulata</td>\n",
" <td>1.0</td>\n",
" <td>2000.0</td>\n",
" <td>2000.0</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1622</th>\n",
" <td>Akashiwo sanguinea</td>\n",
" <td>1.0</td>\n",
" <td>2021.0</td>\n",
" <td>2021.0</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1623</th>\n",
" <td>Pelagostrobilidium paraepacrum</td>\n",
" <td>1.0</td>\n",
" <td>2014.0</td>\n",
" <td>2014.0</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1624</th>\n",
" <td>Slabberia halterata</td>\n",
" <td>1.0</td>\n",
" <td>1972.0</td>\n",
" <td>1972.0</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>1625 rows × 6 columns</p>\n",
"</div>"
],
"text/plain": [
" species records min_year max_year \\\n",
"0 Larus argentatus 1118392.0 1837.0 2024.0 \n",
"1 Larus fuscus 84912.0 1964.0 2024.0 \n",
"2 Larus canus 11298.0 1953.0 2024.0 \n",
"3 Larus ridibundus 9528.0 1911.0 2024.0 \n",
"4 Phalacrocorax carbo 8610.0 1910.0 2024.0 \n",
"... ... ... ... ... \n",
"1620 Wandonia haliotis 1.0 2015.0 2015.0 \n",
"1621 Raja undulata 1.0 2000.0 2000.0 \n",
"1622 Akashiwo sanguinea 1.0 2021.0 2021.0 \n",
"1623 Pelagostrobilidium paraepacrum 1.0 2014.0 2014.0 \n",
"1624 Slabberia halterata 1.0 1972.0 1972.0 \n",
"\n",
" source_obis source_gbif \n",
"0 True True \n",
"1 True True \n",
"2 True True \n",
"3 True True \n",
"4 True True \n",
"... ... ... \n",
"1620 False True \n",
"1621 False True \n",
"1622 True False \n",
"1623 False True \n",
"1624 False True \n",
"\n",
"[1625 rows x 6 columns]"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"import duckdb\n",
"import pyarrow.dataset as ds\n",
Expand Down Expand Up @@ -242,7 +59,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 7bc8a6d

Please sign in to comment.