Skip to content

multiindex + cftimeindex broken on pandas main #9878

Open
@dcherian

Description

@dcherian

What happened?

This test fails on pandas main branch

@requires_cftime
def test_multiindex():
index = xr.cftime_range("2001-01-01", periods=100, calendar="360_day")
mindex = pd.MultiIndex.from_arrays([index])
assert mindex.get_loc("2001-01") == slice(0, 30)

I will xfail this test but it would be good to fix it

cc @spencerkclark

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions