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
matrixplot group order changes with pandas 1.2.0 #1562
The test test_matrixplot_obj fails if pandas>1.2.0 as the groups order changes. These groups are meant to be sorted with plot.add_totals(sort='descending'). All groups have the same value here, so my assumption is this is fine. I'm going to change the test for now, but it'd be good to hear back from you on whether this is a bug or not.
It would probably be good if we could ensure a stable sort was used so this won't change in future.
If I understand correctly, pandas > 1.2.0 plot.add_totals(sort='descending') returns a different sorting compared to previous version. However, most of the categories have the same number of cells and thus a different sorting is equally valid.
My suggestion is to use other dataset in which the number of cells per category is different and update the image.
Activity
Accommodate pandas 1.2.0 in matrix plot test (scverse#1562)
Accommodate pandas 1.2.0 in matrix plot test (#1562)
Accommodate pandas 1.2.0 in matrix plot test (#1562)
fidelram commentedon Jan 13, 2021
If I understand correctly, pandas > 1.2.0
plot.add_totals(sort='descending')returns a different sorting compared to previous version. However, most of the categories have the same number of cells and thus a different sorting is equally valid.My suggestion is to use other dataset in which the number of cells per category is different and update the image.