pydata / pydata/xarray

multiindex + cftimeindex broken on pandas main

Open
#9,878 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug topic-cftime
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

What happened?

This test fails on pandas main branch

https://github.com/pydata/xarray/blob/96e0ff7d70c605a1505ff89a2d62b5c4138b0305/xarray/tests/test_cftimeindex.py#L1191-L1195

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

cc @spencerkclark

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the referenced test in xarray/tests/test_cftimeindex.py at lines 1191-1195 against the pandas main branch and compare the failure with the current xarray behavior. Investigate the interaction between MultiIndex and the cftime index, then confirm the test passes without relying on an xfail.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.