Skip to content

(x + 1) % 1 inside test_multi.py #19092

Closed
@Mofef

Description

@Mofef

Code Sample, a copy-pastable example if possible

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

No one assigned

    Labels

    MultiIndexTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions