Support geopandas tables
robmarkcole opened this issue · comments
Robin Cole commented
Bug / Issue
Possibly a bug, or a known limitation. I am working with geodataframes and wish to upload these as browsable tables. However on attempt I get errors:
table = dp.DataTable(gdf) # gdf is geopandas.geodataframe.GeoDataFrame
report = dp.Report(table)
report.upload(name='gis_table')
.
.
.
ArrowTypeError: ('Did not pass numpy.dtype object', 'Conversion failed for column geometry with type geometry')
fgenoese commented
Probably related to pyarrow, see here:
streamlit/streamlit#1002 (comment)
https://issues.apache.org/jira/plugins/servlet/mobile#issue/ARROW-14267
Mandeep Gill commented
Yep, this is related pyarrow
, which is the underlying format we use to store dataframes. A workaround may be to use dp.Table
instead of dp.DataTable
, but unfortunately this won't be interactive.
We'll look at what we can do to improve support for geodataframes
going forwards and update the docs accordingly.