Is Dash/dash-table compatible with Pandas 1.0.0, which was released last week? It is a significant update with a lot of changes, and I didn’t see any mention of anything so I thought I’d ask.
It should be. Pandas isn’t a requirement of Dash.
- The documentation uses
df.to_dict('records')which converts a Pandas dataframe to a Python-native list of dictionaries.
- In our serializer, we use the
.tolistmethod for Pandas Series, which I believe is something from Numpy (https://github.com/plotly/plotly.py/blob/4bf740b9e47affbe99002974fd5aee1432a2f2e2/packages/python/plotly/_plotly_utils/utils.py#L125-L131)
plotly.express(https://plot.ly/python/plotly-express/) has a deeper Pandas integration. I’m not sure about the compatibility with 1.0.0 but @nicolaskruchten would know more.
I just ran our test suite in CI against Pandas 1.0 and it fails on Python 2.7 and 3.5 because it can’t install 1.0 from PyPI, and there’s a small failure in
px.treemap which we can fix in the next patch release.
Actually the failure is not in the functions but in a documentation example which was calling pandas functions, so we should be ok for pandas 1.0 (with the current release and older ones as well).