Closed deanm0000 closed 6 months ago
Have you tried pyarrow.table(counties)
? I think the the about-to-be-released pyarrow there is also RecordBatchReader.from_stream()
.
To keep the GeoArrow extension types, I think you will still have to import geoarrow.pyarrow
before calling pyarrow.table()
.
To keep the GeoArrow extension types, I think you will still have to
import geoarrow.pyarrow
before callingpyarrow.table()
.
It's not strictly required when calling pyarrow.table
... but the extension metadata will be on the field, and the array will not be an extension type.
ugh...I did not know pa.table was a thing (only pa.Table). Yes that worked.
Is this the best way to get a pyarrow table from a GeoTable (without pandas, of course)?
where
counties
is my GeoTable.and then as a related question, do you know if that copies since it's reading it in batches?