datapane / datapane

Build and share data reports in 100% Python

Home Page:https://datapane.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support geopandas tables

robmarkcole opened this issue · comments

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')

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.