zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
U
­ý°dºã@sPddlZddlZddlmZmZmZddlmZ    Gdd„dƒZ
Gdd„dƒZ dS)éN)ÚPeriodÚ PeriodIndexÚ period_rangec@s<eZdZdZej dddddddd    d
d d d g ¡dd„ƒZdS)ÚTestPeriodRepresentationz#
    Wish to match NumPy units
    zfreq, base_date)zW-THUú
1970-01-01)ÚDr)ÚBr)ÚHr)ÚTr)ÚSr)ÚLr)ÚUr)ÚNr)ÚMz1970-01)ÚAi²cCs0t|d|d}tjdtjd}t |j|¡dS)Né
)ÚstartZperiodsÚfreq)Zdtype)rÚnpZarangeÚint64ÚtmZassert_numpy_array_equalZasi8)ÚselfrZ    base_dateÚrngÚexp©rú]d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/indexes/period/test_tools.pyÚ    test_freqsz"TestPeriodRepresentation.test_freqN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚpytestÚmarkZ parametrizerrrrrr s"õþrc@seZdZdd„ZdS)ÚTestPeriodIndexConversioncCsFtdddd}| ¡}|D]}t|tƒst‚qt|ƒ}t ||¡dS)Nrz1/1/2001z    12/1/2009)rrÚend)rÚtolistÚ
isinstancerÚAssertionErrorrrZassert_index_equal)rÚindexÚrsÚxZreconrrrÚ test_tolist)s z%TestPeriodIndexConversion.test_tolistN)rrrr+rrrrr#(sr#) Únumpyrr!ZpandasrrrZpandas._testingZ_testingrrr#rrrrÚ<module>s