-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
MultiIndexTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Description
Code Sample, a copy-pastable example if possible
pandas/pandas/tests/indexes/test_multi.py
Lines 170 to 171 in 9303315
major_labels = [(x + 1) % 3 for x in major_labels] | |
minor_labels = [(x + 1) % 1 for x in minor_labels] |
Problem description
I assume this is supposed to shift the labels cyclically by one. Then % 4
and % 2
should be used. Otherwise its at least weird to write (x + 1) % 1
instead of 0
.
Metadata
Metadata
Assignees
Labels
MultiIndexTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite