1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
U
¬ý°doã
@sHddlZddlZddlZddlmZmZddlmZ    ddl
m Z ej dddgddgdd    d
„ƒZej d ejd ejd gd dd„ƒZdd„eejejfDƒZe dd„eejfDƒ¡e dd„ejejejfDƒ¡e ejdejd g¡e dddg¡ej ed dd„ƒZej eejddd ƒeejddd ƒeejddd ƒedƒgdd„ddd „ƒZej e d!¡ ¡e d!¡e d!¡ ¡gd"d„dd#d$„ƒZej ej d%¡ej d&¡ejd%d' ¡e d(¡e  d%d)¡e  d&d*¡gd+d„dd,d-„ƒZ!ej ej d.¡ej "d/¡ejd.d0 ¡ejd1d2e  d.d*¡e  d/d3¡gd4d„dd5d6„ƒZ#ej $d.¡ej %d ¡ej "¡gZ&ej ejd7d8 ¡e  d7d9¡ejd7d2ge&d d:d;„ƒZ'ej e  d<d*¡ejd=d0 ¡e d>¡ge&d d?d@„ƒZ(ej e  dAd)¡ejdAd' ¡ejdAd'ge&d dBdC„ƒZ)ej eej*e    j+eje,gdDd„ddEdF„ƒZ-dS)GéN)ÚIndexÚ
RangeIndex)Ú expressionsTi@BZnumexprÚpython)ZautouseÚparamsÚidsccs tj}|jt_|jV|t_dS©N)ÚexprÚ _MIN_ELEMENTSÚparam)Úrequestr
©r úWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/arithmetic/conftest.pyÚswitch_numexpr_min_elements sré©Údtype)rcCs|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')
    ©r ©r r r rÚonesrcCs4g|],}tjtjtjfD]}|dgd|d‘qqS)rér)ÚnpÚint64Úuint64Úfloat64)Ú.0Úbox_clsrr r rÚ
<listcomp>2sþrcCs g|]}|dgdtjd‘qS)ç€rr)rr)rrr r rr7scCsg|]}tjd|d‘qS)rr)rÚarray)rrr r rr8srgcCs|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')
    rrr r rÚzero@sr rrrrcCs
t|ƒjSr©ÚtypeÚ__name__©Úxr r rÚ<lambda>`ór&)rrcCs|jS)z7
    Several types of numeric-dtypes Index objects
    rrr r rÚ numeric_idxXsr(Z10m7scCs
t|ƒjSrr!r$r r rr&sr'cCs|jS)zV
    Several variants of Timedelta scalars representing 10 minutes and 7 seconds.
    rrr r rÚ    scalar_tdms r)ééH)Údaysz72:00:00ÚDÚhcCs
t|ƒjSrr!r$r r rr&…r'cCs|jS)za
    Several timedelta-like and DateOffset objects that each represent
    a 3-day timedelta
    rrr r rÚ
three_days|sr/ééx)Úhoursi )ÚsecondsÚmcCs
t|ƒjSrr!r$r r rr&˜r'cCs|jS)zb
    Several timedelta-like and DateOffset objects that each represent
    a 2-hour timedelta
    rrr r rÚ    two_hourssr5é)ÚminutesÚscCs|jS)zp
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Hourly frequencies.
    rrr r rÚ
not_hourly©s r9ééz23:00:00cCs|jS)zo
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Daily frequencies.
    rrr r rÚ    not_daily¹s r<imcCs|jS)z{
    Several timedelta-like and DateOffset instances that are _not_
    compatible with Monthly or Annual frequencies.
    rrr r rÚmismatched_freqÉs r=cCs|jSr)r#r$r r rr&Ýr'cCs|jS)zc
    Fixture to test behavior for Index, Series, tm.to_array, numpy Array and list
    classes
    rrr r rÚ box_1d_arrayÜsr>).ÚnumpyrZpytestZpandasÚpdrrZpandas._testingZ_testingÚtmZpandas.core.computationrr    ZfixturerrrrÚzerosÚextendrrr Zaranger(Z    TimedeltaZto_pytimedeltaZto_timedelta64r)ÚoffsetsZDayZHourZ timedelta64r/ZMinuter5Z    YearBeginZ
MonthBeginZ_common_mismatchr9r<r=ZSeriesZto_arrayÚlistr>r r r rÚ<module>sº  
 
 þ 
 
ûø
 
  ýú
 
 
 
 
ú÷
 
 
 
 
 
ú÷
    
 
ý
 
ýûÿ
 
ýûÿ
 
 
ýûÿ
ÿ