Skip to content

[GH-2068] GeoPandas: implement GeoSeries fillna limit - #3302

Merged
jiayuasu merged 3 commits into
masterfrom
feature/geopandas-fillna-limit
Sep 8, 2026
Merged

[GH-2068] GeoPandas: implement GeoSeries fillna limit#3302
jiayuasu merged 3 commits into
masterfrom
feature/geopandas-fillna-limit

Conversation

@jiayuasu

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?

This PR implements the limit parameter for GeoSeries.fillna.

  • Fill only the first limit missing geometries in the natural row order.
  • Support scalar geometries, local GeoPandas GeoSeries, and distributed Sedona GeoSeries replacements.
  • Preserve the left index, row order, name, and CRS while matching GeoPandas alignment and duplicate-index behavior.
  • Avoid materializing a driver-sized replacement series for scalar fills.
  • Document the distributed ordering cost and add a release note.

How was this patch tested?

  • Focused GeoSeries fillna and parity tests on Spark 3.5: 23 passed.
  • Focused GeoSeries fillna and parity tests on Spark 4.1: 23 passed.
  • Shapely 1 compatibility tests: 3 passed.
  • All commit hooks passed, including Black, Bandit, codespell, gitleaks, and markdownlint.

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation.

@jiayuasu
jiayuasu force-pushed the feature/geopandas-fillna-limit branch from c540e6c to c946b15 Compare September 7, 2026 06:20
@jiayuasu jiayuasu added this to the sedona-2.0.0 milestone Sep 8, 2026
@jiayuasu
jiayuasu marked this pull request as ready for review September 8, 2026 21:56
@jiayuasu
jiayuasu merged commit fe39686 into master Sep 8, 2026
34 checks passed
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.

Geopandas: Implement limit parameter for geoseries.fillna()

1 participant