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

Function test_cftime_range_same_as_pandas

xarray/tests/test_cftime_offsets.py:1700–1705  ·  view source on GitHub ↗
(start, end, freq)

Source from the content-addressed store, hash-verified

1698 ),
1699)
1700def test_cftime_range_same_as_pandas(start, end, freq) -> None:
1701 result = date_range(start, end, freq=freq, calendar="standard", use_cftime=True)
1702 result = result.to_datetimeindex(time_unit="ns")
1703 expected = date_range(start, end, freq=freq, use_cftime=False)
1704
1705 np.testing.assert_array_equal(result, expected)
1706
1707
1708@pytest.mark.filterwarnings("ignore:Converting a CFTimeIndex with:")

Callers

nothing calls this directly

Calls 2

date_rangeFunction · 0.90
to_datetimeindexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…