'Vfi ddlZddlZddlZddlmZejdejdejgdZ deejejfDZ e deejfDe d ejej ej fDe ejd ej ge gd eje d Zejejd ejd ejd gddZejejdejdejdejdejddejddgddZejejdejdejdejdejddejddgdd ZejdejdejgZejejd!dejd"ejd#gezd$ZdS)%N)Indexdtype)paramsc|jS)a@ Several variants of integer value 1. The zero-dim integer array behaves like an integer. This fixture can be used to check that datetimelike indexes handle addition and subtraction of integers and zero-dimensional arrays of integers. Examples -------- dti = pd.date_range('2016-01-01', periods=2, freq='h') dti DatetimeIndex(['2016-01-01 00:00:00', '2016-01-01 01:00:00'], dtype='datetime64[ns]', freq='h') dti + one DatetimeIndex(['2016-01-01 01:00:00', '2016-01-01 02:00:00'], dtype='datetime64[ns]', freq='h') paramrequests Oc:\PYTHON\DbComparer\venv\Lib\site-packages\pandas/tests/arithmetic/conftest.pyoners ( =c|g|]9}tjtjtjfD]}|dgdz|:S)rr)npint64uint64float64).0box_clsrs r rsa   (BIrz2    GQC!G5!!!    rcDg|]}|dgdztjS)rr)rr)rrs r rr$s/ U U Uggtfqj 333 U U Urc:g|]}tjd|S)rr)rarray)rrs r rr%s' V V V5bhq&&& V V Vrr)rgrc|jS)a Several types of scalar zeros and length 5 vectors of zeros. This fixture can be used to check that numeric-dtype indexes handle division by any zero numeric-dtype. Uses vector of length 5 for broadcasting with `numeric_idx` fixture, which creates numeric-dtype vectors also of length 5. Examples -------- arr = RangeIndex(5) arr / zeros Index([nan, inf, inf, inf, inf], dtype='float64') r r s r zeror*s " =r10m7sc*t|jSNtype__name__xs r r'H$q''"r)ridsc|jS)zV Several variants of Timedelta scalars representing 10 minutes and 7 seconds. r r s r scalar_tdr+Bs  =rH)daysz72:00:00Dhc*t|jSr!r"r%s r r'r'Zr(rc|jS)za Several timedelta-like and DateOffset objects that each represent a 3-day timedelta r r s r three_daysr3Q =rx)hoursi )secondsmc*t|jSr!r"r%s r r'r'mr(rc|jS)zb Several timedelta-like and DateOffset objects that each represent a 2-hour timedelta r r s r two_hoursr<dr4rz23:00:00c|jS)zo Several timedelta-like and DateOffset instances that are _not_ compatible with Daily frequencies. r r s r not_dailyr@~s  =r)numpyrpytestpandaspdrfixturerrrzerosextendrrr Timedeltato_pytimedeltato_timedelta64r+offsetsDayHour timedelta64r3Minuter< YearBegin MonthBegin_common_mismatchr@rr rTs 828ARX666788898,  28RX.     U UE28CT U U UVVV V VRXry"*4U V V VWWW hbht2:... /000 ^^^u. W,,.. W W,,..  #"  q  !++-- Z  q#r3   #"       # 1,,.. X&&&q#sC    #"     JJ!Jq# 2--// Z      r