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-code

Installs 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
1mrgoonie avatarrepomixmrgoonie/claudekit-skillsPackage entire code repositories into single AI-friendly files using Repomix. Capabilities include pack codebases with customizable include/exclude patterns, ge406skills.sh installs
2secondsky avatarplan-interviewsecondsky/claude-skillsAdaptive interview-driven spec generation. Use when converting rough plans into comprehensive specifications, needing structured requirements gathering, or tran406skills.sh installs
3umbraco avatarumbraco-property-editor-uiumbraco/umbraco-cms-backoffice-skillsImplement property editor UIs in Umbraco backoffice using official docs405skills.sh installs
4fredm00n avatarframer-code-components-overridesfredm00n/framerlabsCreate Framer Code Components and Code Overrides. Use when building custom React components for Framer, writing Code Overrides (HOCs) to modify canvas elements,404skills.sh installs
5mcollina avatarnode-best-practicesmcollina/skillsProvides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, test404skills.sh installs
6sergiodxa avatarfrontend-react-router-best-practicessergiodxa/agent-skillsReact Router performance and architecture patterns. Use when writing loaders, actions, forms, routes, or working with React Router data fetching. Triggers on ta402skills.sh installs