gL i8 ddlZddlZddlmZmZmZmZejdefdZ ejdZ ejdZ ejdZ ejdZ y) N) DataFrameIndexNaT date_rangereturnc ttjjdj dt t dtdddS) zb Fixture for DataFrame of floats with DatetimeIndex Columns are ['A', 'B', 'C', 'D'] )dABCDz 2000-01-01r B)periodsfreq)columnsindex)rnprandom default_rngstandard_normalrlistra/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/tests/frame/conftest.pydatetime_framer sF  a 00:d6l#s= rc ttjjdj dt t dDcgc]}d| c}tt td}d|d <|Scc}w) z Fixture for DataFrame of floats and strings with index of unique strings Columns are ['A', 'B', 'C', 'D', 'foo']. r )r rfoo_dtyper )rrbarfoo) rrrrrrrangeobjectr)idfs rfloat_string_framer&sk  a 009r3AtA3Z36Bd6l# B BuI I 4s A=c dtttdgdDcic]6\}}|tjj dj d|8c}}t tdDcgc]}d| c}t}|djd |d<|Scc}}wcc}w) z| Fixture for DataFrame of different float types with index of unique strings Columns are ['A', 'B', 'C', 'D']. r )float32r(r(float64r rrrrCfloat16) rziprrrrrr"r#astype)colrr$r%s rmixed_float_framer0*s "V J U &&q)0050A A r3AtA3Z36B BgnnY'BsG I 4s ;B' 0 B-c tttdgdDcic]\}}|tjd|c}}t t dDcgc]}d| c}tScc}}wcc}w)zz Fixture for DataFrame of different int types with index of unique strings Columns are ['A', 'B', 'C', 'D']. r )int32uint64uint8int64rrrr*)rr-rronesrr"r#)r/rr$s rmixed_int_framer7?st "$v,0UV U 5) ) r3AtA3Z36B   4s "A5  A;c ttddtdddtdddd}t|jd<t|jd <|S) a Fixture for DataFrame of date_range Series with different time zones Columns are ['A', 'B', 'C']; some entries are missing A B C 0 2013-01-01 2013-01-01 00:00:00-05:00 2013-01-01 00:00:00+01:00 1 2013-01-02 NaT NaT 2 2013-01-03 2013-01-03 00:00:00-05:00 2013-01-03 00:00:00+01:00 20130101)rz US/Eastern)rtzCET)Ar r+)r>)r>r )rrriloc)r%s rtimezone_framer@OsV J2JlCJe<  BBGGDMBGGDM Ir)numpyrpytestpandasrrrrfixturerr&r0r7r@rrrrEs      (  r