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
I think I have similar issue in plotly 5.10.0 and 5.17.0 when there is no data in one of facet_row or facet_col cols when col is pd.Categorical. Works if I convert it to str type.
Reproducer (modified from the original):
The above produces the following error:
Environment:
The simplest fix (which discards points with nan values) is to use
grouped.indices
instead ofgrouped.groups
in this line:plotly.py/packages/python/plotly/plotly/express/_core.py
Line 1914 in 5240301
However it would be useful to allow nan values in grouping using
dropna=False
inDataFrame.groupby
:https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.DataFrame.groupby.html?highlight=groupby#pandas.DataFrame.groupby
The text was updated successfully, but these errors were encountered: