You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an empty dataframe (no rows) with an "object" dtype column is written using use_arrow=True, this leads to this type of error: pyogrio.errors.FieldError: Error while creating field from Arrow for field 3 with name 'HFDTLT' and type n (Type 'n' for field HFDTLT is not supported.).
The same problem occurs when an object type column contains only None values.
Looking deeper into this, the issue is that in the table returned by pyarrow.Table.from_pandas, the object column is returned as having the "null" type... and this "null" type is not supported by GDAL.
When an empty dataframe (no rows) with an "object" dtype column is written using
use_arrow=True
, this leads to this type of error:pyogrio.errors.FieldError: Error while creating field from Arrow for field 3 with name 'HFDTLT' and type n (Type 'n' for field HFDTLT is not supported.)
.The same problem occurs when an object type column contains only None values.
Looking deeper into this, the issue is that in the table returned by
pyarrow.Table.from_pandas
, theobject
column is returned as having the "null" type... and this "null" type is not supported by GDAL.pyogrio/pyogrio/geopandas.py
Line 623 in ed39ad7
The text was updated successfully, but these errors were encountered: