pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Spatial data: GeoDataFrames, spatial joins, CRS/projections, choropleth/interactive maps, spatial autocorrelation, PySAL. Use for geographic data, spatial files (Shapefile, GeoPackage, GeoParquet), or spatial stats. For charts without GIS use plotly.
Claude Code
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas --agent claude-code
Codex
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas -a codex -y
Cursor
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas -a cursor -y
Gemini CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas -a gemini-cli -y
GitHub Copilot
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas -a github-copilot -y
OpenCode
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas -a opencode -y
Windsurf
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas -a windsurf -y
name: geopandas description: >- Spatial data: GeoDataFrames, spatial joins, CRS/projections, choropleth/interactive maps, spatial autocorrelation, PySAL. Use for geographic data, spatial files (Shapefile, GeoPackage, GeoParquet), or spatial stats. For charts without GIS use plotly. metadata: audience: research-coders domain: python-library library-version: "1.1.3" skill-last-updated: "2026-03-28"
geopandas spatial data library for Python: manipulation, analysis, and visualization of geographic data. Covers GeoDataFrames, spatial joins, CRS/projections, vector operations, raster integration (rasterio, xarray), choropleth mapping, interactive maps (folium), basemap tiles (contextily), spatial autocorrelation, and the PySAL ecosystem. Use when working with geographic data, reading/writing spatial files (Shapefile, GeoPackage, GeoParquet), making maps, or running spatial statistics. For interactive web-based geographic charts without spatial analysis, use plotly.
Comprehensive skill for spatial data analysis with geopandas and the broader Python geospatial stack. Use the decision trees below to find the right guidance, then load detailed references as needed.
This skill targets **geopandas 1.x** (tested with 1.1.3). Key changes from earlier versions:
GeoPandas extends pandas with spatial data types and operations:
| File | Purpose | When to Read | |------|---------|--------------| | `quickstart.md` | Installation, GeoDataFrame creation, basic I/O and plotting | Starting with geopandas | | `data-io.md` | File formats, pyogrio, web data, spatial databases | Loading/saving spatial data | | `crs-projections.md` | CRS fundamentals, reprojecting, choosing projections | CRS errors or projection decisions | | `spatial-operations.md` | Spatial joins, overlays, dissolve, clip, buffer, distance | Combining or transforming spatial data | | `raster-integration.md` | rasterio, xarray/rioxarray, zonal statistics | Working with raster data | | `visualization.md` | Static maps, interactive maps, basemaps, classification | Making maps and figures | | `pysal-spatial-stats.md` | Spatial weights, autocorrelation, LISA, spatial regression | Spatial statistics and modeling | | `gotchas.md` | CRS mismatches, invalid geometries, common errors | Debugging spatial issues |
1. **New to geopandas?** Start with `quickstart.md` then `spatial-operations.md` 2. **Making maps?** Read `visualization.md` (relies on `crs-projections.md` for projection choices) 3. **Spatial statistics?** Read `pysal-spatial-stats.md` (for methodology context, also load `data-scientist` skill's `geospatial-analysis.md`) 4. **Having issues?** Check `gotchas.md` first
Loading/saving spatial data? ├─ Read vector file (Shapefile, GeoPackage, GeoJSON) → ./references/data-io.md ├─ Read GeoParquet → ./references/data-io.md ├─ Read from PostGIS / DuckDB Spatial → ./references/data-io.md ├─ Download boundaries (Census, OSM) → ./references/data-io.md ├─ Create GeoDataFrame from lat/lon columns → ./references/quickstart.md ├─ Write to file → ./references/data-io.md └─ Read raster data (GeoTIFF) → ./references/raster-integration.md
Spatial operations? ├─ Join by location (point-in-polygon, etc.) → ./references/spatial-operations.md ├─ Join by nearest feature → ./references/spatial-operations.md ├─ Overlay (intersection, union, difference) → ./references/spatial-operations.md ├─ Dissolve (merge polygons by attribute) → ./references/spatial-operations.md ├─ Clip to boundary → ./references/spatial-operations.md ├─ Buffer features → ./references/spatial-operations.md ├─ Compute distances → ./references/spatial-operations.md ├─ Compute centroids or areas → ./references/spatial-operations.md └─ Areal interpolation (mismatched boundaries) → ./references/spatial-operations.md
CRS/projection issues? ├─ Check current CRS → ./references/crs-projections.md ├─ Reproject to different CRS → ./references/crs-projections.md ├─ Choose a projection for analysis → ./references/crs-projections.md ├─ Data has no CRS (set it) → ./references/crs-projections.md ├─ CRS mismatch error → ./references/gotchas.md └─ Area/distance calculations wrong → ./references/crs-projections.md
Making maps? ├─ Quick static choropleth → ./references/visual
## 🔥 力荐 · StatsPAI — Stata 与 R 的 Python 平替,为 AI Agent 而生 🔁 Stata / R 平替:reghdfe、csdid、rdrobust、synth、fixest、did 等常用命令在 Python 中一站式替代,一个 import statspai as sp 搞定 DID / RD / IV / SCM / DML / matching 🤖 面向 Agent 设计:结构化结果对象 + 内置 MCP Server,Claude / Codex
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready…
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…