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

Function test_dayofweek_after_cftime

xarray/tests/test_cftime_offsets.py:1382–1387  ·  view source on GitHub ↗
(freq: str)

Source from the content-addressed store, hash-verified

1380
1381@pytest.mark.parametrize("freq", ["YE", "ME", "D"])
1382def test_dayofweek_after_cftime(freq: str) -> None:
1383 result = date_range("2000-02-01", periods=3, freq=freq, use_cftime=True).dayofweek
1384 # TODO: remove once requiring pandas 2.2+
1385 freq = _new_to_legacy_freq(freq)
1386 expected = pd.date_range("2000-02-01", periods=3, freq=freq).dayofweek
1387 np.testing.assert_array_equal(result, expected)
1388
1389
1390@pytest.mark.parametrize("freq", ["YE", "ME", "D"])

Callers

nothing calls this directly

Calls 2

date_rangeFunction · 0.90
_new_to_legacy_freqFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…