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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
Ë
oñúhì9ã ó4—ddlZddlZddlZddlmZmZmZddlm    Z
d„Z d„Z d„Z ejjded«ed«ed    «g«d
„«Zejjd ed«ed d «fed«ed«fed    «ed«fed    «ed«fed«ed «fg«d„«Zejjdddidgd¢iddig«d„«Zejjd ddg«ejjdgd¢«ejjdgd¢«d„«««Zejjd ed!d"gd d#g¬$«ed!d"gd%d&g¬$«d'fej,d d#gd(d)gd!d"gd*œd+d,g¬$«j.ej,d%d&gd(d)gd!d"gd*œd+d,g¬$«j.d-fg«d.„«Zejjd/d0d1g«d2„«Zejjd3d0d1g«d4„«Zd5„Zd6„Zd7„Zd8„Zd9„Zd:„Z d;„Z!d<„Z"d=„Z#d>„Z$d?„Z%d@„Z&dA„Z'dB„Z(dC„Z)ejjddDdEg«dF„«Z*ejjddGdHg«dI„«Z+ejjdde,g«ejjdJd0d1g«ejjdKddLg«dM„«««Z-dN„Z.dO„Z/y)PéN)Ú CategoricalÚ    DataFrameÚSeriesc ó`—tj||fi|¤Žtj||fi|¤Žy)a&
    Check that two Series equal.
 
    This check is performed commutatively.
 
    Parameters
    ----------
    a : Series
        The first Series to compare.
    b : Series
        The second Series to compare.
    kwargs : dict
        The arguments passed to `tm.assert_series_equal`.
    N)ÚtmÚassert_series_equal©ÚaÚbÚkwargss   ú]H:\Change_password\venv_build\Lib\site-packages\pandas/tests/util/test_assert_series_equal.pyÚ_assert_series_equal_bothr s.€ô×ј1˜aÑ* 6Ò*Ü×ј1˜aÑ* 6Ó*óc 󂗠   tj||fi|¤Žd}tj|¬«y#t$rYywxYw)a
    Check that two Series are not equal.
 
    Parameters
    ----------
    a : Series
        The first Series to compare.
    b : Series
        The second Series to compare.
    kwargs : dict
        The arguments passed to `tm.assert_series_equal`.
    z7The two Series were equal when they shouldn't have been)ÚmsgN)rrÚpytestÚfailÚAssertionError)r
r r rs    r Ú_assert_not_series_equalr s?€ð Ü
×јq !Ñ. vÒ.ØGˆä ‰ ˜ÖøÜ ò Ù ð ús ‚/2²    >½>c ó8—t||fi|¤Žt||fi|¤Žy)a.
    Check that two Series are not equal.
 
    This check is performed commutatively.
 
    Parameters
    ----------
    a : Series
        The first Series to compare.
    b : Series
        The second Series to compare.
    kwargs : dict
        The arguments passed to `tm.assert_series_equal`.
    N)rr    s   r Ú_assert_not_series_equal_bothr6s"€ô˜Q Ñ, VÒ,ܘQ Ñ, VÓ,rÚdataéÚabcuáàäcó@—tt|«t|««y©N)rr)rs r Útest_series_equalrIs€äœf T›l¬F°4«LÕ9rz data1,data2ééÚxyzuéèësaaacó@—tt|«t|««yr)rr)Údata1Údata2s  r Ú$test_series_not_equal_value_mismatchr$Ns€ô"¤&¨£-´¸³Õ?rr ÚdtypeÚfloat64Úindex©rérÚnameÚfoocó`—td«}t|«}t|fi|¤Ž}t||«y)Nr)Úrangerr)r rÚs1Ús2s    r Ú'test_series_not_equal_metadata_mismatchr0\s/€ô ‹8€DÜ    ‹€Bä    Ñ    ˜Ñ    €BÜ! " bÕ)r)g|ò°Pkš¿?g—9]›¿?)gV-²¿?gÉå?¤¿?)Úfloat32r&ÚFloat32Údecimals)rrr)réé
có.—d| z}t|g|¬«}t|g|¬«}|dvs|dk\rPt||z
«dk\r?d}tjt|¬«5t j |||¬«ddd«yt|||¬«y#1swYyxYw)    Nr5©r%)r4r5rgü©ñÒMb@?zSeries values are different©Úmatch©Úrtol)rÚabsrÚraisesrrrr)r"r#r%r3r;r.r/rs        r Útest_less_preciser>ls–€ð ˆy‰=€DÜ    ˜uÔ    %€BÜ    ˜uÔ    %€Bà7јx¨1š}´°U¸U±]Ó1CÀvÒ1MØ+ˆÜ ]‰]œ>°Ô 5ñ    6Ü × "Ñ " 2 r°Õ 5÷    6ð    6ô    " " b¨tÖ4÷    6ð    6ús ÁB  Bz    s1,s2,msgÚl1Úl2r)©r'gð?g@zSeries\.index are differentgÍÌÌÌÌÌ@çø?©r
r Úcr
r z$MultiIndex level \[0\] are differentcóΗd|i}|r<tjt|¬«5tj||fi|¤Žddd«ytj||fi|¤Žy#1swYyxYw)NÚcheck_index_typer8)rr=rrr)r.r/rrFr s     r Útest_series_equal_index_dtyperG|sf€ð,!Ð"2Ð 3€FáÜ ]‰]œ>°Ô 5ñ    5Ü × "Ñ " 2 rÑ 4¨VÒ 4÷    5ð    5ô     ×јr 2Ñ0¨Ó0÷    5ð    5ús ¢AÁA$Ú
check_likeTFcóú—tgd¢gd¢¬«}tgd¢gd¢¬«}|s=tjtd¬«5t    j
|||¬«ddd«yt |||¬«y#1swYyxYw)    N©rr)rrCrA)rr)r©rDr r
úSeries.index are differentr8)rH©rrr=rrrr)rHr.r/s   r Ú test_series_equal_order_mismatchrN›sk€ä    ’    ¢Ô    1€BÜ    ’    ¢Ô    1€Bá Ü ]‰]œ>Ð1MÔ Nñ    BÜ × "Ñ " 2 r°jÕ A÷    Bð    Bô    " " b°ZÖ@÷    Bð    Búó ÁA1Á1A:Ú check_indexcóú—tgd¢gd¢¬«}tgd¢gd¢¬«}|r=tjtd¬«5t    j
|||¬«ddd«yt |||¬«y#1swYyxYw)NrJrCrArKrLr8)rPrM)rPr.r/s   r Ú test_series_equal_index_mismatchrR§sk€ä    ’    ¢Ô    1€BÜ    ’    ¢Ô    1€BáÜ ]‰]œ>Ð1MÔ Nñ    DÜ × "Ñ " 2 r°{Õ C÷    Dð    Dô    " " b°kÖB÷    Dð    DúrOcó֗tt¬«}tt¬«}tjtd¬«5t j ||dd¬«ddd«y#1swYyxYw)Nr7z0check_like must be False if check_index is Falser8FT)rPrH)rÚobjectrr=Ú
ValueErrorrr©ÚleftÚrights  r Ú%test_series_invalid_param_combinationrY³sW€Ü œÔ €DÜ œÔ  €EÜ    ‰ÜÐLô
ñPô     ×јt U¸È$ÕO÷P÷PñPús ¼AÁA(có̗d}tgd¢«}tgd¢«}tjt|¬«5t    j
|||¬«ddd«y#1swYyxYw)Nz™Series are different
 
Series length are different
\[left\]:  3, RangeIndex\(start=0, stop=3, step=1\)
\[right\]: 4, RangeIndex\(start=0, stop=4, step=1\)rJ)rr)rrr8r:©rrr=rrr©r;rr.r/s    r Ú!test_series_equal_length_mismatchr]¼sT€ð ;€Cô
’    Ó    €BÜ    ’ Ó    €Bä    ‰”~¨SÔ    1ñ2Ü
×јr 2¨DÕ1÷2÷2ñ2úó ¸AÁA#có̗d}tgd¢«}tgd¢«}tjt|¬«5t    j
|||¬«ddd«y#1swYyxYw)Nz†Series are different
 
Series values are different \(33\.33333 %\)
\[index\]: \[0, 1, 2\]
\[left\]:  \[1, 2, 3\]
\[right\]: \[1, 2, 4\]rJr(r8r:r[r\s    r Ú)test_series_equal_numeric_values_mismatchr`ÊsT€ð €Cô
’    Ó    €BÜ    ’    Ó    €Bä    ‰”~¨SÔ    1ñ2Ü
×јr 2¨DÕ1÷2÷2ñ2úr^có
—|rdnd}d|›d|›d}ttgd¢««}ttgd¢««}tjt|¬«5t j |||¬    «ddd«y#1swYyxYw)
NÚstrrTz†Series are different
 
Series values are different \(66\.66667 %\)
\[index\]: \[0, 1, 2\]
\[left\]:  \['a', 'b', 'c'\]
Categories \(3, zC\): \['a', 'b', 'c'\]
\[right\]: \['a', 'c', 'b'\]
Categories \(3, z\): \['a', 'b', 'c'\]rC)r
rDr r8r:)rrrr=rrr)r;Úusing_infer_stringr%rr.r/s      r Ú-test_series_equal_categorical_values_mismatchrdÙs€€Ù'‰E¨X€Eðð
ðàÐ0ð 4€Cô
” šOÓ,Ó    -€BÜ    ” šOÓ,Ó    -€Bä    ‰”~¨SÔ    1ñ2Ü
×јr 2¨DÕ1÷2÷2ñ2ús ÁA9Á9Bcó—d}ttjddd¬««}ttjddd¬««}tjt
|¬«5t j|||¬«ddd«y#1swYyxYw)    NzîSeries are different
 
Series values are different \(100.0 %\)
\[index\]: \[0, 1, 2\]
\[left\]:  \[1514764800000000000, 1514851200000000000, 1514937600000000000\]
\[right\]: \[1549065600000000000, 1549152000000000000, 1549238400000000000\]z
2018-01-01rÚD)ÚperiodsÚfreqz
2019-02-02r8r:)rÚpdÚ
date_rangerr=rrrr\s    r Ú*test_series_equal_datetime_values_mismatchrkëso€ð T€Cô
”— ‘ ˜l°A¸CÔ@Ó    A€BÜ    ”— ‘ ˜l°A¸CÔ@Ó    A€Bä    ‰”~¨SÔ    1ñ2Ü
×јr 2¨DÕ1÷2÷2ñ2ús Á BÂB cóD—|rd}nd}d|›d|›d}ttddg««}ttddgtd«¬    ««}|r=tjt
|¬
«5t j|||¬ «ddd«yt|||¬ «y#1swYyxYw) NrbrTzšAttributes of Series are different
 
Attribute "dtype" are different
\[left\]:  CategoricalDtype\(categories=\['a', 'b'\], ordered=False, categories_dtype=z^\)
\[right\]: CategoricalDtype\(categories=\['a', 'b', 'c'\], ordered=False, categories_dtype=z\)r
r r)Ú
categoriesr8)Úcheck_categorical)    rrÚlistrr=rrrr)rnrcr%rr.r/s      r Ú&test_series_equal_categorical_mismatchrpús®€Ù؉àˆððð!à!&  sð  .€Cô
” ˜S #˜JÓ'Ó    (€BÜ    ” ˜S #˜J´4¸³;Ô?Ó    @€BáÜ ]‰]œ>°Ô 5ñ    PÜ × "Ñ " 2 rÐ=NÕ O÷    Pð    Pô    " " bÐ<MÖN÷    Pð    Pús Á%BÂBcó6—ttjgd¢d¬««}|jt«}d}t j ||d¬«tjt|¬«5t j ||d¬«ddd«y#1swYyxYw)    NrJÚInt64r7zjAttributes of Series are different
 
Attribute "dtype" are different
\[left\]:  Int64
\[right\]: int[32|64]F©Ú check_dtyper8T)
rriÚarrayÚastypeÚintrrrr=r©rWrXrs   r Ú1test_assert_series_equal_extension_dtype_mismatchrysu€ä ”"—(‘(š9¨GÔ4Ó 5€DØ K‰KœÓ €Eð €Cô ×ј4 °EÕ:ä    ‰”~¨SÔ    1ñ>Ü
×јt U¸Õ=÷>÷>ñ>úó Á-BÂBcó6—ttjdd«gd¬«}|jt«}d}t j ||d¬«tjt|¬«5t j ||d    ¬«ddd«y#1swYyxYw)
NrrÚintervalr7zyAttributes of Series are different
 
Attribute "dtype" are different
\[left\]:  interval\[int64, right\]
\[right\]: objectFrsr8T)
rriÚIntervalrvrTrrrr=rrxs   r Ú0test_assert_series_equal_interval_dtype_mismatchr~"sz€ä ”2—;‘;˜q !Ó$Ð%¨ZÔ 8€DØ K‰KœÓ €Eð €Cô ×ј4 °EÕ:ä    ‰”~¨SÔ    1ñ>Ü
×јt U¸Õ=÷>÷>ñ>úrzcóJ—Gd„dt«}tddg«}tddg«}|ddg«}tj||d¬«tj||d¬«tj||d¬«tj||d¬«tjt
d¬    «5tj||d¬«ddd«tjt
d¬    «5tj||d¬«ddd«y#1swYŒFxYw#1swYyxYw)
Ncó —eZdZy)ú/test_series_equal_series_type.<locals>.MySeriesN)Ú__name__Ú
__module__Ú __qualname__©rr ÚMySeriesr4s„Ø rr†rr)F)Úcheck_series_typeTzSeries classes are differentr8©rrrrr=r)r†r.r/Ús3s    r Útest_series_equal_series_typerŠ3só€ô ”6ô ô
A‹€BÜ    A‹€BÙ    1a&Ó    €Bä×ј2˜r°UÕ;Ü×ј2˜r°TÕ:ä×ј2˜r°UÕ;Ü×ј2˜r°UÕ;ä    ‰”~Ð-KÔ    Lñ?Ü
×јr 2¸Õ>÷?ô
‰”~Ð-KÔ    Lñ?Ü
×јr 2¸Õ>÷?ð?÷?ð?ú÷?ð?úsÂ/D Ã+DÄ DÄD"cóÚ—tddg«}tddg«}tddg«}tj||d¬«tj||d¬«d}tjt
|¬«5tj||d¬«ddd«d}tjt
|¬«5tj||d¬«ddd«y#1swYŒHxYw#1swYyxYw)Nr
r T©Ú check_exactzzSeries are different
 
Series values are different \(100\.0 %\)
\[index\]: \[0, 1\]
\[left\]:  \[a, b\]
\[right\]: \[b, a\]r8zzSeries are different
 
Series values are different \(100\.0 %\)
\[index\]: \[0, 1\]
\[left\]:  \[b, a\]
\[right\]: \[a, b\]rˆ)r.r/r‰rs    r Ú&test_series_equal_exact_for_nonnumericrŽHsр䠠  c
Ó    €BÜ    c
Ó    €BÜ    c
Ó    €Bä×ј2˜r¨tÕ4Ü×ј2˜r¨tÕ4ð €Cô
‰”~¨SÔ    1ñ9Ü
×јr 2°4Õ8÷9ð €Cô
‰”~¨SÔ    1ñ9Ü
×јr 2°4Õ8÷9ð9÷9ð9ú÷9ð9úsÁ5CÂ3C!ÃCÃ!C*cóp—tgd¢d¬«}tgd¢d¬«}tj||d¬«y)NrJrrr7ÚInt32Frs©rrrrVs  r Ú8test_assert_series_equal_ignore_extension_dtype_mismatchr’dó,€ä ’) 7Ô +€DÜ ’9 GÔ ,€EÜ×ј4 °EÖ:rcóp—tgd¢d¬«}tgd¢d¬«}tj||d¬«y)NrJrrr7Úint64Frsr‘rVs  r ÚDtest_assert_series_equal_ignore_extension_dtype_mismatch_cross_classr–kr“rcó$—tdg«}tdg«jd¬«}tj||«tj||«tj||d¬«tj||d¬«t    j
t d¬«5tj||«ddd«t    j
t d¬«5tj||«ddd«y#1swYŒDxYw#1swYyxYw)NrF)Úallows_duplicate_labels)Ú check_flagsz<Flagsr8)rÚ    set_flagsrrrr=rrVs  r Útest_allows_duplicate_labelsr›rs×€Ü 1#‹;€DÜ A3‹K× !Ñ !¸%Ð !Ó @€EÜ×ј4 Ô&Ü×ј5 %Ô(Ü×ј4 °EÕ:Ü×ј5 $°EÕ:ä    ‰”~¨XÔ    6ñ,Ü
×јt UÔ+÷,ô
‰”~¨XÔ    6ñ,Ü
×јt UÔ+÷,ð,÷,ð,ú÷,ð,ús C:ÃDÃ:DÄDcóڗt|g«}tj||j««t    j
|«}tj ||jd¬««y)NT)Údeep)rrrÚcopyriÚIndexÚassert_index_equal)Ú nulls_fixtureÚserÚidxs   r Ú%test_assert_series_equal_identical_nar¤sN€Ü
-Ó
!€Cä×ј3 §¡£
Ô+ô (‰(3‹-€CÜ×ј#˜sŸx™x¨T˜xÓ2Õ3rc    óL—tdddtjddg«g«}tdddtjddg«g«}tj||«tj||d¬«tj||«tj||d¬«y)Nrg™©Ö=¡ÛŠ?g’ß·¤ò>gš    ï°´9Þ?gÓ‹ýÚ?TrŒ)rÚnprurr)ÚxÚys  r Ú%test_identical_nested_series_is_equalr©‹s €äà Ø Ø Ü H‰HÐ(Ð*<Ð=Ó >ð        
ó    €Aô    à Ø Ø Ü H‰HÐ(Ð*<Ð=Ó >ð        
ó    €Aô×ј1˜aÔ Ü×ј1˜a¨TÕ2Ü×ј1˜aÔ Ü×ј1˜a¨TÖ2rÚ
datetime64Ú timedelta64có†—tgd¢«j|›d«}|j|›d«}tjtd¬«5t j ||«ddd«t j ||d¬«|tgd¢«j|›d«z}tjtd    ¬«5t j ||«ddd«tjtd    ¬«5t j ||d¬«ddd«y#1swYŒºxYw#1swYŒRxYw#1swYyxYw)
N)iCi … iK3Ez[s]z[ms]z"Attributes of Series are differentr8Frs)rrrúSeries are different)rrvrr=rrr)r%Úser_sÚser_mss   r Ú%test_check_dtype_false_different_resor°¥s€ô Ò/Ó 0× 7Ñ 7¸5¸'À¸ Ó F€EØ \‰\˜U˜G 4˜.Ó )€FÜ    ‰”~Ð-QÔ    Rñ.Ü
×јu fÔ-÷.ä×ј6 5°eÕ<à
Œf’YÓ×&Ñ&¨%¨° ~Ó6Ñ6€Fä    ‰”~Ð-CÔ    Dñ.Ü
×јu fÔ-÷.ô
‰”~Ð-CÔ    DñAÜ
×јu f¸%Õ@÷AðA÷.ð.ú÷ .ð.ú÷AðAús$ÁDÃD+Ã=D7ÄD(Ä+D4Ä7Errr•cóȗtdg|¬«}tdg|¬«}tjtd¬«5t    j
||«ddd«y#1swYyxYw)Nl¸Œ?&l,r7l׌?&l,r­r8r[)r%rWrXs   r Útest_large_unequal_intsr²·sX€ô Ð#Ð$¨EÔ 2€DÜ Ð$Ð%¨UÔ 3€EÜ    ‰”~Ð-CÔ    Dñ,Ü
×јt UÔ+÷,÷,ñ,ús ¸AÁA!rÚvalg @có˜—tdd|g|¬«}ttjdd|g««}tj||d|¬«y)Nrr)r7F)rtr)rrirurr)r³rr%rWrXs     r Ú test_ea_and_numpy_no_dtype_checkrµÀsC€ô
1a˜+ UÔ +€DÜ ”2—8‘8˜Q  3˜KÓ(Ó )€EÜ×ј4 °EÀ{ÖSrcód—tgd¢«}tgd¢«}tj||d¬«tj|j    «|j    «d¬«tj
|j d«j|j d«jd¬«y)N)éQééyé&éJéHr·r·é’r·r·éªr»r»)r¼é    r¼r¼r¼r¼r¼r¼r¼r¼r¼r¼r¼r¼rBr:rr)rrrÚassert_frame_equalÚto_frameÚassert_extension_array_equalrvÚvaluesrVs  r Ú test_assert_series_equal_int_tolrÄÊs|€ä ÒMÓ N€DÜ ÒJÓ K€EÜ×ј4 ¨SÕ1ä×ј$Ÿ-™-›/¨5¯>©>Ó+;À#ÕFÜ×#Ñ#Ø  ‰ GÓ×#Ñ# U§\¡\°'Ó%:×%AÑ%AÈörcóV—ttjdt¬«gd¢«}ttjdt¬«tjddd««}t j ||«t j|j«|j««y)Nér7)rgš™™™™™É?gš™™™™™Ù?g333333ã?gš™™™™™é?rrr)    rr¦ÚzerosrwÚlinspacerrrÀrÁ)Úser1Úser2s  r Ú,test_assert_series_equal_index_exact_defaultrËÖsj€ä ”"—(‘(˜1¤CÔ(Ò*DÓ E€DÜ ”"—(‘(˜1¤CÔ(¬"¯+©+°a¸¸AÓ*>Ó ?€DÜ×ј4 Ô&Ü×ј$Ÿ-™-›/¨4¯=©=«?Õ;r)0Únumpyr¦rÚpandasrirrrÚpandas._testingÚ_testingrrrrÚmarkÚ parametrizer-rorr$r0r>Ú from_recordsrDrGrNrRrYr]r`rdrkrpryr~rŠrŽr’r–r›r¤r©r°r²rTrµrÄrËr…rr ú<module>rÓs·ðÛÛ ã÷ñõ
ò+ò& ò,-ð&‡×ј¡%¨£(©D°«K¹¸h»Ð!HÓIñ:óJð:ð‡×ÑØá    ˆq‹‘5˜˜A“;ÐÙ     ˆe‹‘d˜5“kÐ"Ù     ˆh‹™˜h›Ð(Ù     ˆh‹™˜f›Ð&Ù    ˆq‹‘5˜“8Ðð ó    ñ@ó    ð@ð‡×ÑØ à    )ÐØ    ’)ÐØ    ˆðóñ*óð*ð‡×јÐ);Ð=MÐ(NÓO؇×јÒ"CÓD؇×јÒ%8Ó9ñ
5ó:óEóPð
5ð‡×ÑØñ D˜$<¨¨1 vÔ .Ù D˜$<¨¨S zÔ 2Ø *ð    
ð #ˆI× "Ñ "ؘ!f C¨ :°T¸4°LÑAÈ#ÈsÈô ç‰aØ "ˆI× "Ñ "ؘCj¨¨S z¸¸t¸ ÑEÈcÐSVÈZô ç‰aØ 4ð    
ðóñ*1ó+ð*1ð‡×ј¨¨e }Ó5ñAó6ðAð‡×ј¨¨u¨ Ó6ñCó7ðCòPò 2ò 2ò2ò$ 2òOò.>ò">ò"?ò*9ò8;ò;ò ,ò4ò3ð4‡×ј <°Ð"?Ó@ñAóAðAð"‡×ј 7¨GÐ"4Ó5ñ,ó6ð,ð‡×ј 4¨ .Ó1؇×ј¨¨u¨ Ó6؇×ј  C Ó)ñTó*ó7ó2ðTò    ó<r