
Geopandas
When you need to work with shapefiles, GeoJSON, or any vector geographic data in Python, this extends pandas with spatial operations through shapely integration. You get the familiar dataframe interface but with geometry columns that support buffers, spatial joins, overlay operations, and coordinate transformations. The skill covers the full workflow from reading PostGIS or local files through analysis to creating choropleth maps with matplotlib or interactive maps with folium. Performance matters here: use Arrow for faster I/O, always match your CRS before joins, and stick with projected coordinate systems when calculating actual distances or areas. GeoPackage is recommended over shapefiles for modern work.
- skills.sh installs
- 407
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill geopandas --agent claude-codeInstalls into .claude/skills of the current project.
Files
GeoPandas
GeoPandas extends pandas to enable spatial operations on geometric types. It combines the capabilities of pandas and shapely for geospatial data analysis.
Installation
uv pip install geopandas
Optional Dependencies
# For interactive maps
uv pip install folium
# For classification schemes in mapping
uv pip install mapclassify
# For faster I/O operations (2-4x speedup)
uv pip install pyarrow
# For PostGIS database support
uv pip install psycopg2
uv pip install geoalchemy2
# For basemaps
uv pip install contextily
# For cartographic projections
uv pip install cartopy
Quick Start
import geopandas as gpd
# Read spatial data
gdf = gpd.read_file("data.geojson")
# Basic exploration
print(gdf.head())
print(gdf.crs)
print(gdf.geometry.geom_type)
# Simple plot
gdf.plot()
# Reproject to different CRS
gdf_projected = gdf.to_crs("EPSG:3857")
# Calculate area (use projected CRS for accuracy)
gdf_projected['area'] = gdf_projected.geometry.area
# Save to file
gdf.to_file("output.gpkg")
Core Concepts
Data Structures
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Documentation, AI & Agent Building, Data Science & ML, Python
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Bash Linux405
- App Store Optimization404
- Telegram Bot Builder403
- Treatment Plans403
- Micro Saas Launcher401
- Ai Product399
- Paper 2 Web399
- Best Practices398
- Json Canvas397
- Hypothesis Generation396
- Notion Research Documentation396
- Social Content396
- Sympy396
- Mcp Builder395
- Pytorch Fsdp395
- Interactive Portfolio394
- Obsidian Bases394
- Qa Test Planner394
- Railway Deployment394
- Subagent Driven Development394
- Vulnerability Scanner394
- Design System Starter393
- Using Superpowers393
- Venue Templates393