MCPcopy Index your code
hub / github.com/pydata/xarray / test_multiindex

Function test_multiindex

xarray/tests/test_cftimeindex.py:1291–1296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1289@pytest.mark.xfail(reason="fails on pandas main branch")
1290@requires_cftime
1291def test_multiindex():
1292 index = xr.date_range(
1293 "2001-01-01", periods=100, calendar="360_day", use_cftime=True
1294 )
1295 mindex = pd.MultiIndex.from_arrays([index])
1296 assert mindex.get_loc("2001-01") == slice(0, 30)
1297
1298
1299@requires_cftime

Callers

nothing calls this directly

Calls 1

get_locMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…