geopandas
Lets your agent use Python tools for geographic data. It helps work with vector data and spatial operations.
What it does
GeoPandas is a tool for working with geographic data on maps using Python. It helps organize and analyze spatial information, like the locations of cities or country borders.
When to use it
- ✓When you need to analyze the distance between points on a map.
- ✓When comparing areas of different regions.
- ✓To combine information from different map layers.
Example of what to ask your AI
“How can I calculate the area of all Brazilian states using a map file?”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
GeoPandas uses table-like data structures to store map information. It allows you to perform spatial operations like calculating distances or areas directly on this data.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add K-Dense-AI/scientific-agent-skills --skill geopandasOr download just the file:
curl -L https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/main/skills/geopandas/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
GeoPandas
Use GeoPandas for planar vector data represented as pandas-like GeoSeries and
GeoDataFrame objects. This skill targets stable GeoPandas 1.2.0 (released
2026-09-28). The stable website currently carries a development build label;
release-specific behavior below was checked against the v1.2.0 source and wheel.
Reproducible environment
GeoPandas 1.2.0 requires Python 3.11+, NumPy >=2, pandas >=2.2,
Shapely >=2.1, pyproj >=3.7, pyogrio >=0.8, and packaging. The current
pyproj wheel below requires Python 3.12+. This exact Python 3.12 snapshot was
smoke-tested on 2026-10-01:
uv venv --python 3.12
uv pip install \
"geopandas==1.2.0" \
"numpy==2.5.3" \
"pandas==3.0.6" \
"shapely==2.1.2" \
"pyproj==3.8.0" \
"pyogrio==0.13.0" \
"pyarrow==25.0.1" \
"packaging==26.3"
Keep optional plotting and PostGIS packages pinned in the project lock as well. Do not mix binary geospatial packages from incompatible package channels.
Workflow
- Inspect a vetted local layer with
vector_inventory.py; retain source hashes. - Use
crs_reprojection_plan.pyto inspect candidate transformations. It plans only: execute an appropriateto_crs()/pyproj transformation separately. - Audit geometry with
geometry_validity_report.py; compare simulated repair changes before requesting its optional new GeoPackage output. - Run the intended analysis with explicit predicates, CRS units, precision,
and aggregation rules.
spatial_join_audit.pymeasures join cardinality; it does not export joined features or perform a dissolve. - Use
export_plan.pyto inspect the proposed contract, then write and reopen the actual output separately. A successful plan has not written a file. - Review disclosure and generalization before sharing derived geodata/maps,
using
sensitive_coordinates_checklist.pywhen sensitive locations occur.
Examples below use synthetic or placeholder local inputs. File/database examples need the named dataset or service; PostGIS and tile-provider calls were reviewed against upstream contracts but were not exercised against a live service.
Safety and privacy contract
- Treat exact coordinates, addresses, parcel boundaries, trajectories, and small-area joins as sensitive. Default reports to counts, categories, coarse extents, and redacted identifiers. Generalize before publication.
- Never automatically load a URL, cloud URI, GDAL
/vsi*path, archive, or geocode an address. Obtain explicit approval, validate provenance and hashes, then stage an unpacked local file in an isolated workspace. - GDAL/OGR drivers, GEOS, PROJ, pyogrio, Shapely, pyproj, and their wheels are a native-code trust boundary. Prefer official wheels/conda-forge, record native versions, restrict drivers, and process untrusted data in a sandbox.
- Do not open macro-enabled office files or nested archives through permissive GDAL drivers. The bundled CLIs use an extension allowlist and reject archives.
- Read only named database secrets such as
GEOPANDAS_POSTGIS_PASSWORD; use a secret manager or scoped environment variable. Never embed a password in a URL or source, print an engine/URL, or dump the environment. - Every derived artifact needs source hashes/versions, CRS, operation parameters, predicate, join cardinality, precision/repair choices, and row-count checks.
Correctness gates
Apply these gates before trusting a result:
- Identity and provenance — identify the source layer, stable feature key, duplicate IDs, row count, geometry column, parser/driver, and content hash.
- Geometry state — count null, empty, invalid, mixed, Z/M, and collapsed
geometries separately.
Noneis missing; an empty Shapely geometry is real. - CRS semantics — require CRS metadata.
set_crs()assigns metadata;to_crs()transforms coordinates. Never guess a CRS from coordinate ranges. - Units and operation — GeoPandas is planar. Geographic coordinates are angular; do not use them directly for buffer, distance, area, nearest joins, precision grids, or tolerances. Choose a fit-for-purpose local/equal-area CRS or a geodesic method.
- Transform quality — inspect axis order, area of use, datum pipeline, expected accuracy, ballpark status, and missing grids. Keep PROJ network disabled unless the user explicitly approves grid retrieval.
- Topology and precision — validate before and after repair/overlay. Pick a
…
FAQ
What is geographic data?
It's information that has a location on planet Earth, such as an address, a GPS point, or a polygon representing a country.
What is a CRS?
CRS stands for Coordinate Reference System. It's like a set of rules that dictates how coordinates (latitude and longitude) relate to the Earth's surface, ensuring maps are accurate.
Can I use GeoPandas with any type of map?
GeoPandas is ideal for vector data (points, lines, polygons) and works well with common map formats, but may require extra setup for more complex data or specific sources.
Details
Original description by the author
Guidance and local audit tools for Python workflows that directly use GeoPandas GeoSeries, GeoDataFrame, spatial operations, or vector-data I/O.
Popularity
- GitHub stars
- 51k
- Ranking position
- #1878
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
13c-metabolic-flux
Estimates metabolic fluxes using carbon-13 isotope tracing data. It is useful for analyzing cellular metabolism and biochemical pathways.
K-Dense-AI/scientific-agent-skills
adaptyv
Designs protein characterization experiments using the Adaptyv API. It helps estimate costs, submit sequences, and monitor lab results.
K-Dense-AI/scientific-agent-skills
aeon
Performs machine learning tasks on time series data. It is useful for classifying, forecasting, detecting anomalies, and finding patterns in sequential data.
K-Dense-AI/scientific-agent-skills
alphagenome
Looks up precomputed genomic effects for genetic variants. It provides scores and explanations to understand the impact of variants on the genome.
K-Dense-AI/scientific-agent-skills
Similar skills
benchmark-optimization-loop
Has your agent improve something's speed in a measured way. It tests multiple versions and chooses the fastest one that still works correctly.
affaan-m/ECC
change-impact
Helps your agent analyze the impact of code changes before making them. It compares the planned vs. actual results afterward, covering paths, data, tests, and documentation. Useful for risky or system-wide changes.
affaan-m/ECC
click-path-audit
Lets your agent trace all user buttons and interactions to find bugs. It finds issues where functions seem to work alone but fail together. Useful when bugs persist even after debugging.
affaan-m/ECC