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
Hi everyone, this bug unfortunately persists in Plotly 5.18.0, nearly three years after it was first reported here. What makes it worse is that the error message is not helpful at all for discovering the root of the problem because it says accepted would be
A tuple, list, or one-dimensional numpy array of the above
If the community is not willing to fix this for some reason, at least they should make the users aware that nullable integers are not OK. They have been around for quite a while so it makes sense to take them into account -- ideally by accepting them as integers.
Fixing this might be a good occasion to also address related issues such as #3495
Thanks for following up on this issue, @johentsch. I just ran the code provided above and can confirm that it works when data type is a numpy int64: dtype='int64'
Let us look into this and see the best way to move forward.
Description
px.scatter()
errors whensize
param is Pandas extension dtype Int64. However,size
param works as expected with standard/numpy int64.The new Pandas Extension dtypes should be supported in Plotly Express eg. I use the
pandas.convert_dtypes()
util which changesint64
toInt64
.Example Code
Error
Traceback
Versions
conda env
The text was updated successfully, but these errors were encountered: