B @`5 @svddlmZddlZddlZddlmZmZddlmZddl m Z dddd d d d d dddddg Z ddgZ dgZ e e e Zeje dddZejedddZejddZejddZejdd Zejd!d"Zejd#d$Zejd%d&Zejd'd(Zejd)d*Zejd+d,Zejd-d.Zejd/d0Zejd1d2Zejd3d4Zejeegdd5d6ZdS)7)datetimeN) DataFrameSeries) date_range) period_rangeminmaxfirstlastsumZmeanZsemZmedianprodvarZstdZohlcZquantilecountsizeZnunique)paramscCs|jS)z:Fixture for parametrization of Grouper downsample methods.)param)requestrB/tmp/pip-unpacked-wheel-q9tj5l6a/pandas/tests/resample/conftest.pydownsample_methodsrcCs|jS)z8Fixture for parametrization of Grouper resample methods.)r)rrrrresample_method%srcCsddd}|S)zI Series with date range index and random data for test purposes. DcSs&t|||d}ttjt||dS)N)freq)index)rrnprandomrandnlen)startendrrngrrr_simple_date_range_series1sz;simple_date_range_series.._simple_date_range_series)rr)r!rrrsimple_date_range_series+s r"cCsddd}|S)zK Series with period range index and random data for test purposes. rcSs&t|||d}ttjt||dS)N)r)r)rrrrrr)rrrr rrr_simple_period_range_series>sz?simple_period_range_series.._simple_period_range_series)rr)r#rrrsimple_period_range_series8s r$cCs tdddS)z7Fixture for parametrization of index, series and frame.i)rrrrr _index_startEsr&cCs tdddS)z7Fixture for parametrization of index, series and frame.ir% )rrrrr _index_endKsr(cCsdS)z7Fixture for parametrization of index, series and frame.rrrrrr _index_freqQsr)cCsdS)z7Fixture for parametrization of index, series and frame.Nrrrrr _index_nameWsr*cCs|||||dS)za Fixture for parametrization of date_range, period_range and timedelta_range indexes )rnamer)Z_index_factoryr&r(r)r*rrrr]srcCstt|S)z Fixture for parametrization of values used in parametrization of Series and DataFrames with date_range, period_range and timedelta_range indexes )rZaranger)rrrr_static_valuesfsr,cCsdS)z Fixture for parametrization of Series name for Series used with date_range, period_range and timedelta_range indexes Nrrrrr _series_namepsr-cCst|||dS)zm Fixture for parametrization of Series with date_range, period_range and timedelta_range indexes )rr+)r)rr-r,rrrseriesysr.cCs |ddS)zs Fixture for parametrization of empty Series with date_range, period_range and timedelta_range indexes Nrr)r.rrrempty_series_dtisr/cCstd|i|dS)zp Fixture for parametrization of DataFrame with date_range, period_range and timedelta_range indexes value)r)r)rr-r,rrrframesr1cCs|jdd}t|dS)zv Fixture for parametrization of empty DataFrame with date_range, period_range and timedelta_range indexes Nr)r)rr)r.rrrrempty_frame_dtisr2cCs |jtkr|S|jtkr|SdS)z{ Fixture for parametrization of Series and DataFrame with date_range, period_range and timedelta_range indexes N)rrr)rr.r1rrrseries_and_frames  r3) rZnumpyrZpytestZpandasrrZpandas.core.indexes.datetimesrZpandas.core.indexes.periodrZdownsample_methodsZupsample_methodsZseries_methodsZresample_methodsZfixturerrr"r$r&r(r)r*rr,r-r.r/r1r2r3rrrrsJ