NaN values don't show in categorical column #149
Comments
Hi @F1nnM - and thank you for reporting this bug! It looks weird indeed - one possible explanation that comes to my mind: when your column does not have a lot of different values, it might no longer be considered as a numerical value, but as a categorical value (you can check/modify that by right clicking a column's name above the parallel plot). Changing back to numerical could be a workaround - you can also force the column type programmatically |
Indeed, that seems to be the issue; it's considered categorical. |
So the NaN handling seems weird in general, I tried to fix it, but it's to complex to understand for me. What I found out so far: params_max_columns categorical, standalone version params_max_columns numerical, standalone version In the streamlit component, categorical columns don't show NaNs, only the other values. But it correctly handles NaNs in numerical columns. params_max_columns categorical, Streamlit version params_max_columns numerical, Streamlit version This time I can even supply the dataset I used. For the Hiplot in Streamlit with this dataset you can also check here |
Half-asleep idea: Probably the default csv handler already fills the NaNs with strings "NaN", does it? |
Since it's a problem that only happens with streamlit, I'm wondering if the experimental |
I've started this PR (still WIP) that should fix it, but I don't have time to extensively test it now - hopefully next week |
Ah, awesome! |
should be fixed - I just merged #180 |
Hi,
I've come across a weird bug with the parallel plot:
One of my float columns/axis contains NaN-values.
When plotted with Hiplot only sometimes the entry "nan/inf/null" appears on the axis; more exactly it only appears if there are at least 6 unique values other than NaN in that column.
For example, if all entries in that column contain only the values [nan 3. 5. 7. 9. 15. 30. ] the "nan/inf/null" entry shows correctly.
If however I replace all 30's with 15's without changing anything else, the entry doesn't show up.
Is that a bug, or am I overseeing something on my side?
The text was updated successfully, but these errors were encountered: