ai-content-maker/.venv/Lib/site-packages/pandas/tests/indexes/timedeltas/test_pickle.py

12 lines
302 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
from pandas import timedelta_range
import pandas._testing as tm
class TestPickle:
def test_pickle_after_set_freq(self):
tdi = timedelta_range("1 day", periods=4, freq="s")
tdi = tdi._with_freq(None)
res = tm.round_trip_pickle(tdi)
tm.assert_index_equal(res, tdi)