Skip to content

[GH-3243] GeoPandas: Implement GeoDataFrame explode - #3247

Open
jiayuasu wants to merge 2 commits into
masterfrom
feature/geopandas-frame-explode
Open

[GH-3243] GeoPandas: Implement GeoDataFrame explode#3247
jiayuasu wants to merge 2 commits into
masterfrom
feature/geopandas-frame-explode

Conversation

@jiayuasu

@jiayuasu jiayuasu commented Aug 7, 2026

Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a ticket?

What changes were proposed in this PR?

  • Implement distributed GeoDataFrame.explode for active geometry columns using native ST_Dump and Spark posexplode expressions.
  • Preserve attribute columns, index options, geometry metadata, CRS, and physical SRID, including all-empty results.
  • Share the geometry-expansion implementation with GeoSeries.explode and get_coordinates without adding a join, Python row UDF, or driver collection.
  • Delegate non-geometry columns to pandas-on-Spark while preserving the active geometry column.

How was this patch tested?

  • Ran the targeted GeoDataFrame and GeoSeries explode tests: 25 passed, 1 skipped.
  • Verified native Spark plans, multipart and collection inputs, empty/null geometries, duplicate MultiIndexes, temporary-name collisions, CRS/SRID preservation, and GeoPandas parity.
  • Ran the repository commit hooks successfully.

Did this PR include necessary documentation updates?

  • Yes, I have updated the English and Chinese GeoPandas API documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant