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
{{ message }}
Repository navigation
parallel_coordinates is incorrect when using color and non-sorted index #3576
So it seems like the code corresponding to the color variable is doing a sort or something that isn't retaining the correct order. A and C still have the correct associations, but B is reversed.
I have come into a similar case. I do not think it needs a new issue but this one may need a slight title update.
In my case, the index is sorted. When I plot the original dataframe, there is no problem. But when I plot a slice of the same dataset (keeping the index sorted), the values are disturbed. The problematic values are not necessarily the ones of the column used for coloring.
Activity
shane-kercheval commentedon Jan 30, 2022
So it seems like the code corresponding to the color variable is doing a sort or something that isn't retaining the correct order.
AandCstill have the correct associations, but B is reversed.Adrien-LUDWIG commentedon Apr 11, 2023
I have come into a similar case. I do not think it needs a new issue but this one may need a slight title update.
In my case, the index is sorted. When I plot the original dataframe, there is no problem. But when I plot a slice of the same dataset (keeping the index sorted), the values are disturbed. The problematic values are not necessarily the ones of the column used for coloring.
To reproduce
MarcoGorelli commentedon Dec 1, 2024
hi @shane-kercheval
is this your expected output?
shane-kercheval commentedon Dec 2, 2024
Yes, thank you!
MarcoGorelli commentedon Dec 2, 2024
Awesome! You should already be able to get the fix by using the 6.0 pre-release with the latest Narwhals version
I'd be amazing if you could try it out and report any issues you encounter so they can be fixed before the final 6.0 release 🙏 ⭐