Skip to content

BUG: fix error writing a column with mix of datetimes with and without timezone without arrow#634

Open
theroggy wants to merge 8 commits into
geopandas:mainfrom
theroggy:BUG-fix-error-writing-a-column-with-mix-of-datetimes-with-and-without-timezone-without-arrow
Open

BUG: fix error writing a column with mix of datetimes with and without timezone without arrow#634
theroggy wants to merge 8 commits into
geopandas:mainfrom
theroggy:BUG-fix-error-writing-a-column-with-mix-of-datetimes-with-and-without-timezone-without-arrow

Conversation

@theroggy
Copy link
Copy Markdown
Member

@theroggy theroggy commented Feb 19, 2026

Fixes following errors:

  • Error occured in write_dataframe (with use_arrow=False) when writing a dataframe with a datetime column where all datetimes have no time zone offset: ``TypeError: Invalid dtype float64 for floordiv```
  • Error occured in write_dataframe (with use_arrow=False) when writing a dataframe with a datetime column where some datetimes have a time zone offset and some don't have an offset: ValueError: cannot convert float NaN to integer

Issue noticed in geofileops/geofileops#802

@theroggy theroggy added this to the 0.12.2 milestone Feb 19, 2026
@theroggy theroggy marked this pull request as ready for review February 19, 2026 19:25
theroggy added 2 commits March 5, 2026 22:41
…ng-a-column-with-mix-of-datetimes-with-and-without-timezone-without-arrow
…ng-a-column-with-mix-of-datetimes-with-and-without-timezone-without-arrow
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