Ë
    u™ãjÊH  ã                   óÐ  — d dl Z d dlZd dlZd dlZd dlZd dlZd dlm	Z
 d dlmZ d dlmZmZmZ ej"                  j%                  d¬«      Zej(                  d„ «       Zej(                  d„ «       Zej(                  d„ «       Zej(                  d	„ «       Zej(                  d
„ «       Zej(                  d„ «       Zej(                  d„ «       Z G d„ dej8                  «      Zd„ Zd„ Zd„ Z y)é    N)Úbase)Ú	JSONArrayÚ	JSONDtypeÚ	make_dataÚ
Unhashable©Úreasonc                  ó   — t        «       S ©N)r   © ó    úp/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/pandas/tests/extension/json/test_json.pyÚdtyper      s
   € ä‹;Ðr   c                  óº   — t        d«      } t        | d   «      t        | d   «      k(  r)t        d«      } t        | d   «      t        | d   «      k(  rŒ)t        | «      S )z'Length-10 JSONArray for semantics test.é
   r   é   )r   Úlenr   )Údatas    r   r   r      sV   € ô �R‹=€Dô ˆd�1‰g‹,œ#˜d 1™g›,Ò
&Ü˜‹}ˆô ˆd�1‰g‹,œ#˜d 1™g›,Ó
&ô �T‹?Ðr   c                  ó    — t        i ddig«      S )zLength 2 array with [NA, Valid]Úar   ©r   r   r   r   Údata_missingr   ,   s   € ô �b˜3 ˜)�_Ó%Ð%r   c                  ó,   — t        ddiddidddœg«      S )NÚbr   Úcé   é   é   ©r   r   r   r   r   r   Údata_for_sortingr    2   s!   € ä�s˜A�h  a °¸Ñ*:Ð;Ó<Ð<r   c                  ó&   — t        ddii ddig«      S )Nr   r   r   r   r   r   r   r   Údata_missing_for_sortingr"   7   s   € ä�s˜A�h  S¨! HÐ-Ó.Ð.r   c                  ó"   — t         j                  S r   )ÚoperatorÚeqr   r   r   Úna_cmpr&   <   s   € ä�;‰;Ðr   c                  óD   — t        ddiddii i dddœdddœddiddig«      S )Nr   r   r   r   r   r   r   r   r   r   Údata_for_groupingr(   A   sF   € äà�!ˆHØ�!ˆHØØØ˜!ÑØ˜!ÑØ�!ˆHØ�!ˆHð		
óð r   c                   óÞ  ‡ — e Zd Zej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd	„«       Z	ej                  j                  d
¬«      ˆ fd„«       Z
ej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd„«       Zˆ fd„Zej                  j                  d¬«      ˆ fd„«       Zej                  j                  d¬«      ˆ fd„«       Zej                  j%                  ddg d¢g d¢fdg d¢g d¢fdg d¢g d¢fdg d¢g d¢fdg d¢g d¢fdg d¢g d¢fdg d¢g d¢fdg d¢g d¢fg«      ˆ fd„«       Zˆ fd „Zeˆ fd!„«       Zej                  j                  d"¬«      ˆ fd#„«       Zˆ fd$„Zej                  j                  d%¬«      ˆ fd&„«       Zej                  j                  d%¬«      ˆ fd'„«       Zej                  j                  d(¬«      ˆ fd)„«       Zej                  j                  d*¬«      ˆ fd+„«       Zej                  j                  d*¬«      ˆ fd,„«       Zej                  j=                  d-«      ˆ fd.„«       Zej                  j                  d/¬«      ˆ fd0„«       Z ej                  j                  d1¬«      ˆ fd2„«       Z!eˆ fd3„«       Z"eˆ fd4„«       Z#eˆ fd5„«       Z$eˆ fd6„«       Z%ˆ fd7„Z&ˆ fd8„Z'ˆ fd9„Z(ej                  j                  d:¬«      ˆ fd;„«       Z)ej                  j                  d:¬«      ˆ fd<„«       Z*ej                  j                  d:¬«      ˆ fd=„«       Z+ej                  j                  d:¬«      ˆ fd>„«       Z,ej                  j%                  d? e-j\                  g d@¢«       e/j\                  g d@¢dA¬B«       e/j\                  dCdCdCe/j`                  e/j`                  gdA¬B«      gg dD¢¬E«      ˆ fdF„«       Z1ˆ fdG„Z2ej                  j                  dH¬«      ˆ fdI„«       Z3ej                  j%                  dJg dK¢ e/j\                  g dK¢dL¬B«       e-j\                  g dK¢«      gg dM¢¬E«      ˆ fdN„«       Z4ej                  j%                  dJdOdPdQe/j`                  g e/j\                  dOdPdQe/j`                  gdL¬B«      gdRdSg¬E«      ej                  j%                  dTdC ejj                  dUej                  j                  dV¬«      ¬W«      g«      ˆ fdX„«       «       Z6ej                  j                  dY¬«      ˆ fdZ„«       Z7ej                  j                  d[¬«      ˆ fd\„«       Z8ej                  j                  dH¬«      ej                  j%                  d]d^d_g«      ˆ fd`„«       «       Z9ˆ fda„Z:ej                  j                  db¬«      ˆ fdc„«       Z;ej                  j                  db¬«      ˆ fdd„«       Z<ej                  j                  de¬«      ˆ fdf„«       Z=ej                  j                  dg¬«      ˆ fdh„«       Z>ej                  j                  di¬«      ˆ fdj„«       Z?ej                  j                  dk¬«      ej                  j%                  dldmdng«      ˆ fdo„«       «       Z@ej                  j                  eAdp¬q«      ˆ fdr„«       ZBˆ fds„ZCˆ xZDS )tÚTestJSONArrayz:comparison method not implemented for JSONArray (GH-37867)r   c                 ó$   •— t         ‰| �  |«       y r   )ÚsuperÚtest_contains©Úselfr   Ú	__class__s     €r   r-   zTestJSONArray.test_containsR   s   ø€ ô
 	‰Ñ˜dÕ#r   z&not implemented constructor from dtypec                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_from_dtyper.   s     €r   r2   zTestJSONArray.test_from_dtypeY   s   ø€ ô 	‰Ñ Õ%r   zcollection as scalar, GH-33901c                 óØ   •— t        j                  «       }	 t        j                  d«       t        ‰| �  ||«       t        j                  |«       y # t        j                  |«       w xY w)Néd   )ÚsysÚgetrecursionlimitÚsetrecursionlimitr,   Ú)test_series_constructor_scalar_with_index)r/   r   r   Ú	rec_limitr0   s       €r   r8   z7TestJSONArray.test_series_constructor_scalar_with_index^   sR   ø€ ô ×)Ñ)Ó+ˆ	ð	-ä×!Ñ! #Ô&Ü‰GÑ=¸dÀEÔJä×!Ñ! )Õ,øŒC×!Ñ! )Õ,ús   —%A ÁA)zDifferent definitions of NAc                 ó"   •— t         ‰| �  «        y)zÛ
        The test does .astype(object).stack(). If we happen to have
        any missing values in `data`, then we'll end up with different
        rows since we consider `{}` NA, but `.astype(object)` doesn't.
        N)r,   Ú
test_stack©r/   r0   s    €r   r;   zTestJSONArray.test_stacki   s   ø€ ô 	‰ÑÕr   zdict for NAc                 ó$   •— t         ‰| �  ||«      S r   )r,   Útest_unstack)r/   r   Úindexr0   s      €r   r>   zTestJSONArray.test_unstackr   s   ø€ ô ‰wÑ# D¨%Ó0Ð0r   zSetting a dict as a scalarc                 ó$   •— t         ‰| �  |«       y©z;We treat dictionaries as a mapping in fillna, not a scalar.N)r,   Útest_fillna_scalar©r/   r   r0   s     €r   rB   z TestJSONArray.test_fillna_scalarx   s   ø€ ô 	‰Ñ" <Õ0r   c                 ó$   •— t         ‰| �  |«       yrA   )r,   Útest_fillna_readonlyrC   s     €r   rE   z"TestJSONArray.test_fillna_readonly}   s   ø€ ô 	‰Ñ$ \Õ2r   c                 ó"   •— t         ‰| �  «        yrA   )r,   Útest_fillna_seriesr<   s    €r   rG   z TestJSONArray.test_fillna_series‚   s   ø€ ô 	‰Ñ"Õ$r   c                 ó"   •— t         ‰| �  «        yrA   )r,   Útest_fillna_framer<   s    €r   rI   zTestJSONArray.test_fillna_frame‡   s   ø€ ô 	‰Ñ!Õ#r   c                 ó€   •— t        j                  t        «      5  t        ‰| �  |«       d d d «       y # 1 sw Y   y xY wr   )ÚpytestÚraisesÚAssertionErrorr,   Útest_fillna_with_nonerC   s     €r   rN   z#TestJSONArray.test_fillna_with_noneŒ   s3   ø€ ô �]‰]œ>Ó*ñ 	8Ü‰GÑ)¨,Ô7÷	8÷ 	8ñ 	8ús   ›4´=z5fill value is a dictionary, takes incorrect code pathc                 ó$   •— t         ‰| �  |«       y r   ©r,   Útest_fillna_limit_framerC   s     €r   rQ   z%TestJSONArray.test_fillna_limit_frame“   ó   ø€ ô 	‰Ñ'¨Õ5r   c                 ó$   •— t         ‰| �  |«       y r   rP   rC   s     €r   Útest_fillna_limit_seriesz&TestJSONArray.test_fillna_limit_series˜   rR   r   z'limit_area, input_ilocs, expected_ilocsÚoutside)r   r   r   r   r   )r   r   r   r   r   )r   r   r   r   r   )r   r   r   r   r   )r   r   r   r   r   )r   r   r   r   r   Úinside)r   r   r   r   r   c                 óŽ   •— d}t        j                  t        |¬«      5  t        ‰| �  ||||«       d d d «       y # 1 sw Y   y xY w)Nz'JSONArray does not implement limit_area©Úmatch)rK   rL   ÚNotImplementedErrorr,   Útest_ffill_limit_area)r/   r   Ú
limit_areaÚinput_ilocsÚexpected_ilocsÚmsgr0   s         €r   r[   z#TestJSONArray.test_ffill_limit_area�   sD   ø€ ð" 8ˆÜ�]‰]Ô.°cÔ:ñ 	Ü‰GÑ)Ø˜j¨+°~ô÷	÷ 	ñ 	ús	   Ÿ;»Ac                 óp   •— t        |«      dk(  s|r|j                  t        «       t        ‰| �  ||«       y )Nr   )r   ÚapplymarkerÚ
unhashabler,   Útest_value_counts)r/   Úall_dataÚdropnaÚrequestr0   s       €r   rc   zTestJSONArray.test_value_counts´   s.   ø€ Üˆx‹=˜BÒ¡&Ø×Ñ¤
Ô+Ü‰Ñ! (¨FÕ3r   c                 ó"   •— t         ‰| �  «        y r   )r,   Útest_sort_values_framer<   s    €r   rh   z$TestJSONArray.test_sort_values_frame¹   s   ø€ ô 	‰Ñ&Õ(r   z#combine for JSONArray not supportedc                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_combine_le)r/   Údata_repeatedr0   s     €r   rj   zTestJSONArray.test_combine_le¾   s   ø€ ä‰Ñ Õ.r   c                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_combine_firstr.   s     €r   rm   z TestJSONArray.test_combine_firstÂ   s   ø€ Ü‰Ñ" 4Õ(r   z/JSONArray.__setitem__ mishandles a boolean maskc                 ó$   •— t         ‰| �  |«       y r   )r,   Ú test_where_series_listlike_otherr.   s     €r   ro   z.TestJSONArray.test_where_series_listlike_otherÅ   ó   ø€ ä‰Ñ0°Õ6r   c                 ó$   •— t         ‰| �  |«       y r   )r,   Ú test_mask_listlike_other_inplacer.   s     €r   rr   z.TestJSONArray.test_mask_listlike_other_inplaceÉ   rp   r   zbroadcasting errorc                 ó&   •— t         ‰| �  ||«       y r   )r,   Útest_where_series)r/   r   Úna_valuer0   s      €r   rt   zTestJSONArray.test_where_seriesÍ   s   ø€ ô
 	‰Ñ! $¨Õ1r   zCan't compare dicts.c                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_searchsorted)r/   r    r0   s     €r   rw   zTestJSONArray.test_searchsortedÔ   s   ø€ ä‰Ñ!Ð"2Õ3r   c                 ó(   •— t         ‰| �  |||«       y r   )r,   Útest_equals)r/   r   ru   Ú	as_seriesr0   s       €r   ry   zTestJSONArray.test_equalsØ   s   ø€ ä‰Ñ˜D (¨IÕ6r   z-fill-value is interpreted as a dict of valuesc                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_fillna_copy_framerC   s     €r   r|   z$TestJSONArray.test_fillna_copy_frameÜ   s   ø€ ä‰Ñ& |Õ4r   zFails with CoWc                 ó$   •— t         ‰| �  |«       y r   )r,   Ú&test_equals_same_data_different_objectr.   s     €r   r~   z4TestJSONArray.test_equals_same_data_different_objectà   ó   ø€ ä‰Ñ6°tÕ<r   z$failing on np.array(self, dtype=str)c                 ó"   •— t         ‰| �  «        y)zŠThis currently fails in NumPy on np.array(self, dtype=str) with

        *** ValueError: setting an array element with a sequence
        N)r,   Útest_astype_strr<   s    €r   r�   zTestJSONArray.test_astype_strä   s   ø€ ô 	‰ÑÕ!r   c                 ó"   •— t         ‰| �  «        y)a  
        This currently fails in Series.name.setter, since the
        name must be hashable, but the value is a dictionary.
        I think this is what we want, i.e. `.name` should be the original
        values, and not the values for factorization.
        N)r,   Ú test_groupby_extension_transformr<   s    €r   rƒ   z.TestJSONArray.test_groupby_extension_transformì   s   ø€ ô 	‰Ñ0Õ2r   c                 ó"   •— t         ‰| �  «        y)zó
        This fails in Index._do_unique_check with

        >   hash(val)
        E   TypeError: unhashable type: 'UserDict' with

        I suspect that once we support Index[ExtensionArray],
        we'll be able to dispatch unique.
        N)r,   Útest_groupby_extension_applyr<   s    €r   r…   z*TestJSONArray.test_groupby_extension_applyö   s   ø€ ô 	‰Ñ,Õ.r   c                 ó"   •— t         ‰| �  «        y©z‰
        This fails when we get to tm.assert_series_equal when left.index
        contains dictionaries, which are not hashable.
        N)r,   Útest_groupby_extension_aggr<   s    €r   rˆ   z(TestJSONArray.test_groupby_extension_agg  s   ø€ ô 	‰Ñ*Õ,r   c                 ó"   •— t         ‰| �  «        yr‡   )r,   Útest_groupby_extension_no_sortr<   s    €r   rŠ   z,TestJSONArray.test_groupby_extension_no_sort  s   ø€ ô 	‰Ñ.Õ0r   c                 óª   •— t        |d   «      dk7  r1t        j                  j                  d¬«      }|j	                  |«       t
        ‰| �  ||«       y )Nr   r   zraises in coercing to Seriesr   )r   rK   ÚmarkÚxfailra   r,   Útest_arith_frame_with_scalar)r/   r   Úall_arithmetic_operatorsrf   rŒ   r0   s        €r   rŽ   z*TestJSONArray.test_arith_frame_with_scalar  sI   ø€ Üˆt�A‰w‹<˜1ÒÜ—;‘;×$Ñ$Ð,JÐ$ÓKˆDØ×Ñ Ô%Ü‰Ñ,¨TÐ3KÕLr   c                 ó¤   •— |j                   dv r1t        j                  j                  d¬«      }|j	                  |«       t
        ‰| �  ||«       y ©N)r%   Únez"Comparison methods not implementedr   )Ú__name__rK   rŒ   r�   ra   r,   Útest_compare_scalar©r/   r   Úcomparison_oprf   rŒ   r0   s        €r   r”   z!TestJSONArray.test_compare_scalar  sF   ø€ Ø×!Ñ! \Ñ1Ü—;‘;×$Ñ$Ð,PÐ$ÓQˆDØ×Ñ Ô%Ü‰Ñ# D¨-Õ8r   c                 ó¤   •— |j                   dv r1t        j                  j                  d¬«      }|j	                  |«       t
        ‰| �  ||«       y r‘   )r“   rK   rŒ   r�   ra   r,   Útest_compare_arrayr•   s        €r   r˜   z TestJSONArray.test_compare_array  sF   ø€ Ø×!Ñ! \Ñ1Ü—;‘;×$Ñ$Ð,PÐ$ÓQˆDØ×Ñ Ô%Ü‰Ñ" 4¨Õ7r   z.ValueError: Must have equal len keys and valuec                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_setitem_loc_scalar_mixedr.   s     €r   rš   z+TestJSONArray.test_setitem_loc_scalar_mixed%  s   ø€ ä‰Ñ-¨dÕ3r   c                 ó$   •— t         ‰| �  |«       y r   )r,   Ú,test_setitem_loc_scalar_multiple_homogoneousr.   s     €r   rœ   z:TestJSONArray.test_setitem_loc_scalar_multiple_homogoneous)  s   ø€ ä‰Ñ<¸TÕBr   c                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_setitem_iloc_scalar_mixedr.   s     €r   rž   z,TestJSONArray.test_setitem_iloc_scalar_mixed-  s   ø€ ä‰Ñ.¨tÕ4r   c                 ó$   •— t         ‰| �  |«       y r   )r,   Ú-test_setitem_iloc_scalar_multiple_homogoneousr.   s     €r   r    z;TestJSONArray.test_setitem_iloc_scalar_multiple_homogoneous1  s   ø€ ä‰Ñ=¸dÕCr   Úmask)TTTFFÚboolean)r   T)únumpy-arrayzboolean-arrayzboolean-array-na)Úidsc                 ó&  •— |r2t         j                  j                  d¬«      }|j                  |«       nKt	        |t
        j                  «      s1t         j                  j                  d¬«      }|j                  |«       t        ‰| �!  |||«       y )Nú<cannot set using a list-like indexer with a different lengthr   z"Issues unwanted DeprecationWarning)	rK   rŒ   r�   ra   Ú
isinstanceÚnpÚndarrayr,   Útest_setitem_mask)r/   r   r¡   Úbox_in_seriesrf   rŒ   r0   s         €r   rª   zTestJSONArray.test_setitem_mask5  sy   ø€ ñ Ü—;‘;×$Ñ$ØUð %ó ˆDð ×Ñ Õ%Ü˜D¤"§*¡*Ô-Ü—;‘;×$Ñ$Ð,PÐ$ÓQˆDØ×Ñ Ô%Ü‰Ñ! $¨¨mÕ<r   c                 óŒ   •— |s1t         j                  j                  d¬«      }|j                  |«       t        ‰| �  ||«       y )NúFails to raiser   )rK   rŒ   r�   ra   r,   Útest_setitem_mask_raises©r/   r   r«   rf   rŒ   r0   s        €r   r®   z&TestJSONArray.test_setitem_mask_raisesI  s;   ø€ ÙÜ—;‘;×$Ñ$Ð,<Ð$Ó=ˆDØ×Ñ Ô%ä‰Ñ(¨¨}Õ=r   r¦   c                 ó&   •— t         ‰| �  ||«       y r   )r,   Ú'test_setitem_mask_boolean_array_with_na)r/   r   r«   r0   s      €r   r±   z5TestJSONArray.test_setitem_mask_boolean_array_with_naP  s   ø€ ô 	‰Ñ7¸¸mÕLr   Úidx)r   r   r   ÚInt64)Úlistúinteger-arrayr£   c                 óŽ   •— |r1t         j                  j                  d¬«      }|j                  |«       t        ‰| �  |||«       y )Nr¦   r   )rK   rŒ   r�   ra   r,   Útest_setitem_integer_array)r/   r   r²   r«   rf   rŒ   r0   s         €r   r·   z(TestJSONArray.test_setitem_integer_arrayV  sE   ø€ ñ Ü—;‘;×$Ñ$ØUð %ó ˆDð ×Ñ Ô%Ü‰Ñ*¨4°°mÕDr   r   r   r   r´   rµ   r«   Fz3list indices must be integers or slices, not NAType)Úmarksc                 ó(   •— t         ‰| �  |||«       y r   )r,   Ú(test_setitem_integer_with_missing_raises)r/   r   r²   r«   r0   s       €r   rº   z6TestJSONArray.test_setitem_integer_with_missing_raisesc  s   ø€ ô* 	‰Ñ8¸¸sÀMÕRr   r­   c                 ó$   •— t         ‰| �  |«       y r   )r,   Ú&test_setitem_scalar_key_sequence_raiser.   s     €r   r¼   z4TestJSONArray.test_setitem_scalar_key_sequence_raisez  r   r   zslice is not iterablec                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_setitem_frame_2d_valuesr.   s     €r   r¾   z*TestJSONArray.test_setitem_frame_2d_values~  s   ø€ ä‰Ñ,¨TÕ2r   ÚsetterÚlocNc                 ó&   •— t         ‰| �  ||«       y r   )r,   Útest_setitem_mask_broadcast)r/   r   r¿   r0   s      €r   rÂ   z)TestJSONArray.test_setitem_mask_broadcast‚  s   ø€ ô
 	‰Ñ+¨D°&Õ9r   c                 óŒ   •— |r1t         j                  j                  d¬«      }|j                  |«       t        ‰| �  ||«       y )Nz8cannot set using a slice indexer with a different lengthr   )rK   rŒ   r�   ra   r,   Útest_setitem_slicer¯   s        €r   rÄ   z TestJSONArray.test_setitem_slice‰  sA   ø€ ÙÜ—;‘;×$Ñ$ØQð %ó ˆDð ×Ñ Ô%Ü‰Ñ" 4¨Õ7r   zslice object is not iterablec                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_setitem_loc_iloc_slicer.   s     €r   rÆ   z)TestJSONArray.test_setitem_loc_iloc_slice‘  s   ø€ ä‰Ñ+¨DÕ1r   c                 ó$   •— t         ‰| �  |«       y r   )r,   Ú)test_setitem_slice_mismatch_length_raisesr.   s     €r   rÈ   z7TestJSONArray.test_setitem_slice_mismatch_length_raises•  s   ø€ ä‰Ñ9¸$Õ?r   zFail to raisec                 ó&   •— t         ‰| �  ||«       y r   )r,   Útest_setitem_invalid)r/   r   Úinvalid_scalarr0   s      €r   rÊ   z"TestJSONArray.test_setitem_invalid™  s   ø€ ä‰Ñ$ T¨>Õ:r   z?result readonly flag is incorrect and does not support na_valuec                 ó$   •— t         ‰| �  |«       y r   )r,   Ú.test_readonly_propagates_to_numpy_array_methodr.   s     €r   rÍ   z<TestJSONArray.test_readonly_propagates_to_numpy_array_method�  s   ø€ ô 	‰Ñ>¸tÕDr   z+only integer scalar arrays can be convertedc                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_setitem_2d_valuesr.   s     €r   rÏ   z$TestJSONArray.test_setitem_2d_values£  s   ø€ ä‰Ñ& tÕ,r   zdata type 'json' not understoodÚenginer   Úpythonc                 ó(   •— t         ‰| �  |||«       y r   )r,   Útest_EA_types)r/   rÐ   r   rf   r0   s       €r   rÓ   zTestJSONArray.test_EA_types§  s   ø€ ô 	‰Ñ˜f d¨GÕ4r   z-JSONArray does not support roundtrip via JSON)rL   r	   c                 ó$   •— t         ‰| �  |«       y r   )r,   Útest_json_roundtripr.   s     €r   rÕ   z!TestJSONArray.test_json_roundtrip¬  s   ø€ ô 	‰Ñ# DÕ)r   c                 ó„   •— t        j                  t        d¬«      5  t        ‰| �  |«       d d d «       y # 1 sw Y   y xY w)Nzno numeric data to plotrX   )rK   rL   Ú	TypeErrorr,   Útest_plot_on_y_axis)r/   Ú	plot_datar0   s     €r   rØ   z!TestJSONArray.test_plot_on_y_axis¹  s4   ø€ ä�]‰]œ9Ð,EÔFñ 	3Ü‰GÑ'¨	Ô2÷	3÷ 	3ñ 	3ús   �6¶?)Er“   Ú
__module__Ú__qualname__rK   rŒ   r�   r-   r2   r8   r;   r>   rB   rE   rG   rI   rN   rQ   rT   Úparametrizer[   rc   rb   rh   rj   rm   ro   rr   rt   rw   ry   Úskipr|   r~   r�   rƒ   r…   rˆ   rŠ   rŽ   r”   r˜   rš   rœ   rž   r    r¨   ÚarrayÚpdÚNArª   r®   r±   r·   Úparamrº   r¼   r¾   rÂ   rÄ   rÆ   rÈ   rÊ   rÍ   rÏ   rÓ   rM   rÕ   rØ   Ú__classcell__)r0   s   @r   r*   r*   Q   sR  ø„ Ø‡[�[×ÑØKð ó ó$óð$ð ‡[�[×ÑÐFÐÓGó&ó Hð&ð ‡[�[×ÑÐ>ÐÓ?ó-ó @ð-ð ‡[�[×ÑÐ;ÐÓ<óó =ðð ‡[�[×Ñ˜mÐÓ,ó1ó -ð1ð
 ‡[�[×ÑÐ:ÐÓ;ó1ó <ð1ð ‡[�[×ÑÐ:ÐÓ;ó3ó <ð3ð ‡[�[×ÑÐ:ÐÓ;ó%ó <ð%ð ‡[�[×ÑÐ:ÐÓ;ó$ó <ð$ô8ð ‡[�[×ÑÐUÐÓVó6ó Wð6ð ‡[�[×ÑÐUÐÓVó6ó Wð6ð ‡[�[×ÑØ1àšªÐ9ØšªÐ9ØšªÐ9ØšªÐ9Ø’ªÐ8Ø’ªÐ8Ø’ªÐ8Ø’ªÐ8ð		
óóóðô4ð
 ó)ó ð)ð ‡[�[×ÑÐCÐÓDó/ó Eð/ô)ð ‡[�[×ÑÐOÐÓPó7ó Qð7ð ‡[�[×ÑÐOÐÓPó7ó Qð7ð ‡[�[×ÑÐ2ÐÓ3ó2ó 4ð2ð ‡[�[×ÑÐ4ÐÓ5ó4ó 6ð4ð ‡[�[×ÑÐ4ÐÓ5ó7ó 6ð7ð ‡[�[×ÑÐEÓFó5ó Gð5ð ‡[�[×ÑÐ.ÐÓ/ó=ó 0ð=ð ‡[�[×ÑÐDÐÓEó"ó Fð"ð ó3ó ð3ð ó
/ó ð
/ð ó-ó ð-ð ó1ó ð1ôMô9ô8ð ‡[�[×ÑÐNÐÓOó4ó Pð4ð ‡[�[×ÑÐNÐÓOóCó PðCð ‡[�[×ÑÐNÐÓOó5ó Pð5ð ‡[�[×ÑÐNÐÓOóDó PðDð ‡[�[×ÑØàˆB�H‰HÒ5Ó6ØˆB�H‰HÒ5¸YÔGØˆB�H‰H�d˜D $¨¯©¨r¯u©uÐ5¸YÔGð	
ò
 Að ó ó	=óð	=ô>ð ‡[�[×ÑØMð ó óMóðMð ‡[�[×ÑØÚ	�H�B—H‘HšY¨gÔ6¸¸¿¹ÂÓ8KÐLÚ4ð ó ó
Eóð
Eð ‡[�[×ÑØà��1�b—e‘eÐØˆB�H‰H�a˜˜A˜rŸu™uÐ%¨WÔ5ð	
ð �_Ð%ð ó ð ‡[�[×ÑØàØˆF�L‰LØØ—k‘k×'Ñ'ØPð (ó ôð	
óóSóóð(Sð ‡[�[×ÑÐ.ÐÓ/ó=ó 0ð=ð ‡[�[×ÑÐ5ÐÓ6ó3ó 7ð3ð ‡[�[×ÑØMð ó ð ‡[�[×Ñ˜X¨¨t }Ó5ó:ó 6óð:ô8ð ‡[�[×ÑÐ<ÐÓ=ó2ó >ð2ð ‡[�[×ÑÐ<ÐÓ=ó@ó >ð@ð ‡[�[×Ñ˜oÐÓ.ó;ó /ð;ð ‡[�[×ÑØPð ó óEóðEð ‡[�[×ÑÐKÐÓLó-ó Mð-ð ‡[�[×ÑÐ?ÐÓ@Ø‡[�[×Ñ˜X¨¨X Ó7ó5ó 8ó Að5ð ‡[�[×ÑØØ>ð ó ó*ó	ð*÷3ð 3r   r*   c                 óè  — | j                   j                  dk(  r¿| j                   |j                   k(  sJ ‚t        j                  t	        | j
                  j                  t        «      «      | j                  | j                  ¬«      } t        j                  t	        |j
                  j                  t        «      «      |j                  |j                  ¬«      }t        j                  | |g|¢­i |¤Ž y )NÚjson)r?   Úname)r   rå   rß   ÚSeriesr   ÚvaluesÚastypeÚobjectr?   ÚtmÚassert_series_equal)ÚleftÚrightÚargsÚkwargss       r   Úcustom_assert_series_equalrð   ¿  s¬   € ð
 ‡z�z‡�˜&Ò Ø�z‰z˜UŸ[™[Ò(Ð(Ð(Ü�y‰yÜ�d—k‘k×(Ñ(¬Ó0Ó1¸¿¹È$Ï)É)ô
ˆô —	‘	Ü�e—l‘l×)Ñ)¬&Ó1Ó2Ø—+‘+Ø—‘ô
ˆô
 ×Ñ˜4 Ð8¨Ò8°Ó8r   c                 óö  — |j                  dd«      }t        j                  | j                  |j                  |j                  dd«      |j                  dd«      |j                  dd«      |j                  d	d«      |› d
�¬«       | j                  dk(  j
                  }|D ]  }t        | |   ||   g|¢­i |¤Ž Œ | j                  |¬«      } |j                  |¬«      }t        j                  | |g|¢­i |¤Ž y )NÚobjÚ	DataFrameÚcheck_column_typeÚequivÚcheck_namesTÚcheck_exactFÚcheck_categoricalz.columns)Úexactrö   r÷   rø   rò   rä   )Úcolumns)	Úgetrê   Úassert_index_equalrú   Údtypesr?   rð   ÚdropÚassert_frame_equal)rì   rí   rî   rï   Úobj_typeÚjsonsÚcols          r   Úcustom_assert_frame_equalr  Ñ  sñ   € Ø�z‰z˜% Ó-€HÜ×ÑØ�‰Ø�‰Ø�j‰jÐ,¨gÓ6Ø—J‘J˜}¨dÓ3Ø—J‘J˜}¨eÓ4Ø Ÿ*™*Ð%8¸$Ó?Øˆj˜Ð!õð �[‰[˜FÑ"×)Ñ)€Eàò KˆÜ" 4¨¡9¨e°C©jÐJ¸4ÒJÀ6ÓJðKð �9‰9˜Uˆ9Ó#€DØ�J‰J˜uˆJÓ%€EÜ×Ñ˜$ Ð7¨Ò7°Ó7r   c                  ó¨  — t        t        j                  ddi«      t        j                  ddi«      t        j                  ddi«      g«      } t        j                  | «      }t        ||«       t        |j                  «       |j                  «       «       t        j                  | j                  g d¢«      «      }d}t        j                  t        |¬	«      5  t        ||«       d d d «       t        j                  t        |¬	«      5  t        |j                  «       |j                  «       «       d d d «       y # 1 sw Y   ŒVxY w# 1 sw Y   y xY w)
Nr   r   r   r   r   r   )r   r   r   zSeries are differentrX   )r   ÚcollectionsÚUserDictrß   ræ   rð   r  Úto_frameÚtakerK   rL   rM   )r   r   r   r_   s       r   Útest_custom_assertsr	  ç  s  € ô ä× Ñ  # q Ó*Ü× Ñ  # q Ó*Ü× Ñ  # q Ó*ð	
ó€Dô 	�	‰	�$‹€AÜ˜q !Ô$Ü˜aŸj™j›l¨A¯J©J«LÔ9ä
�	‰	�$—)‘)šIÓ&Ó'€AØ
!€CÜ	�‰”~¨SÔ	1ñ )Ü" 1 aÔ(÷)ô 
�‰”~¨SÔ	1ñ >Ü! !§*¡*£,°·
±
³Ô=÷>ð >÷)ð )ú÷>ð >ús   ÃD<Ä
)EÄ<EÅE)!r  r$   r5   Únumpyr¨   rK   Úpandasrß   Úpandas._testingÚ_testingrê   Úpandas.tests.extensionr   Ú!pandas.tests.extension.json.arrayr   r   r   rŒ   r�   rb   Úfixturer   r   r   r    r"   r&   r(   ÚExtensionTestsr*   rð   r  r	  r   r   r   ú<module>r     s  ðÛ Û Û 
ã Û ã Ý Ý '÷ñ ð �[‰[×Ñ lÐÓ3€
ð ‡�ñó ðð ‡�ñó ðð  ‡�ñ&ó ð&ð
 ‡�ñ=ó ð=ð ‡�ñ/ó ð/ð ‡�ñó ðð ‡�ñó ðôk3�D×'Ñ'ô k3ò\9ò$8ó,>r   