pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
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.
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill geopandas --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/geopandasContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud /…
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest +…
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation +…
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest +…
Systematic writing framework for philosophy and interdisciplinary academic papers from optimized outline to submission-ready manuscript. Use when users want…