CSE 163
Geopandas
Arpan Kapoor�Summer 2026��💭Icebreaker (discuss with neighbors): ‘
What’s the most difficult sport to play?
Add to our Slido!
#2348882
Announcements
#2348882
zip
x = [1,2,3]
y = [4,5,6]
zip(x, y)
#2348882
Geospatial Data!: Map representation of data
#2348882
Shapes
#2348882
Geopandas - pandas with geo data
import geopandas as gpd
df = gpd.read_file('data_file.shp')
df.plot(column='some_col', legend=True)
plt.savefig('plot.png')
#2348882
Matplotlib
fig, ax = plt.subplots(1)
<plot1>(ax=ax)
<plot2>(ax=ax)
fig.savefig('plot_together.png')
#2348882
Matplotlib
fig, ax = plt.subplots(1)
<plot1>(ax=ax)
<plot2>(ax=ax)
fig.savefig('plot_together.png')
fig, [ax1, ax2] = plt.subplots(1, 2) # width, height
<plot1>(ax=ax1)
<plot2>(ax=ax2)
fig.savefig('plot_separate.png')
#2348882
Matplotlib
fig
ax1
ax2
#2348882
Matplotlib
fig
ax1
ax2
#2348882
Matplotlib
fig
ax1
ax2
#2348882
Hurricane Florence
#2348882
Hurricane Florence
#2348882