Skip to content

Commit ae854e0

Browse files
authored
Merge pull request #185 from mnfienen/main
formatting geopandas for the html layout version
2 parents e06a923 + 3b3325e commit ae854e0

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

notebooks/part0_python_intro/09_a_Geopandas.ipynb

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,8 @@
678678
"id": "50525a00",
679679
"metadata": {},
680680
"source": [
681-
"### How about some spatial joins?"
681+
"## How about some spatial joins?\n",
682+
"***"
682683
]
683684
},
684685
{
@@ -824,6 +825,7 @@
824825
"metadata": {},
825826
"source": [
826827
"## TEST YOUR SKILLS #1\n",
828+
"***\n",
827829
"Using the `bounds` geodataframe you just made, write a function to visualize predicate behaviors.\n",
828830
"- your function should accept a left geodataframe, a right geodataframe, and a string for the predicate\n",
829831
"- your function should plot:\n",
@@ -994,7 +996,11 @@
994996
"id": "e63a1ab3",
995997
"metadata": {},
996998
"source": [
997-
"### As we've seen, spatial joins are powerful, but they really only gather data from multiple collections. What if we want to actually calculate the amount of overlap among shapes? Or create new shapes based on intersection or not intersection of shapes? [`overlay`](https://geopandas.org/en/stable/docs/user_guide/set_operations.html?highlight=overlay) does these things."
999+
"## Overlays\n",
1000+
"***\n",
1001+
"### As we've seen, spatial joins are powerful, but they really only gather data from multiple collections. What if we want to actually calculate the amount of overlap among shapes? Or create new shapes based on intersection or not intersection of shapes?\n",
1002+
"\n",
1003+
"### [overlay](https://geopandas.org/en/stable/docs/user_guide/set_operations.html?highlight=overlay) does these things."
9981004
]
9991005
},
10001006
{
@@ -1016,6 +1022,17 @@
10161022
"inters.plot()"
10171023
]
10181024
},
1025+
{
1026+
"cell_type": "code",
1027+
"execution_count": null,
1028+
"id": "3b39f0f7-2e68-4840-b8fc-d53e3a3d1b3f",
1029+
"metadata": {},
1030+
"outputs": [],
1031+
"source": [
1032+
"inters = bounds.overlay(isthmus, how='intersection')\n",
1033+
"inters.plot()"
1034+
]
1035+
},
10191036
{
10201037
"cell_type": "code",
10211038
"execution_count": null,
@@ -1105,6 +1122,7 @@
11051122
"metadata": {},
11061123
"source": [
11071124
"## TEST YOUR SKILLS _OPTIONAL_\n",
1125+
"***\n",
11081126
"We have an Excel file that contains a crosswalk between SPECIES number as provided and species name. Can we bring that into our dataset and evaluate some conclusions about tree species by neighborhood?\n",
11091127
"- start with the `trees_with_hoods` GeoDataFrame\n",
11101128
"- load up and join the data from datapath / 'Madison_Tree_Species_Lookup.xlsx'\n",

notebooks/part0_python_intro/10a_Rasterio_intro.ipynb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -815,18 +815,6 @@
815815
"display_name": "Python 3 (ipykernel)",
816816
"language": "python",
817817
"name": "python3"
818-
},
819-
"language_info": {
820-
"codemirror_mode": {
821-
"name": "ipython",
822-
"version": 3
823-
},
824-
"file_extension": ".py",
825-
"mimetype": "text/x-python",
826-
"name": "python",
827-
"nbconvert_exporter": "python",
828-
"pygments_lexer": "ipython3",
829-
"version": "3.12.2"
830818
}
831819
},
832820
"nbformat": 4,

0 commit comments

Comments
 (0)