Skip to content

Commit

Permalink
Update geopandas.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Jan 26, 2025
1 parent eda0ff8 commit ebb012f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyogrio/geopandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def write_dataframe(
use_arrow = bool(int(os.environ.get("PYOGRIO_USE_ARROW", "0")))
path, driver = _get_write_path_driver(path, driver, append=append)

if use_arrow and df.empty or len(df) == 0:
if use_arrow and (df.empty or len(df) == 0):
# with arrow, string columns without data trigger an error, so disable arrow
# when writing an empty dataframe.
use_arrow = False
Expand Down

0 comments on commit ebb012f

Please sign in to comment.