
    A>iA                    
   % S SK Jr  S SKJr  S SKrS SKrS SKJr  S SKJ	r	J
r
  S SKrS SKJr  S SKJrJrJr  S SKJr  S SKrS S	KJrJrJrJrJrJr  S S
KJrJrJ r   S SK!J"r"J#r#  S SK$J%r%J&r&J'r'J(r(J)r)J*r*J+r+J,r,J-r-J.r.J/r/J0r0J1r1J2r2J3r3J4r4J5r5J6r6J7r7J8r8J9r9J:r:  S SK;J<r<J=r=  S SK>J?r?J@r@JArAJBrB  S SKCJDrDJErEJFrF  S SKGJHrH  S SKIJJrJ  \	(       a  S SKKJLrL  S SKMJNrNJOrO  / SQrPS\QS'   / SQrRS\QS'   \SSSSS/rTS\QS'   / SQrUS\QS '   \P\T-   rV\R\U-   rW/ \VQ\WQrXS\QS!'   \YS"S#/rZS\QS$'   S%S&/r[S\QS''   / \ZQ\[Qr\S\QS('   \]S)S*/r^S\QS+'   \" 5       (       a	  S,/r_S\QS-'   O
\`S.S,/r_S\QS-'   / \^Q\ZQraS\QS/'   S0S1/rbS\QS2'   S3S4/rcS\QS5'   \dS6/reS\QS7'   \fS8/rgS\QS9'   \hS:/riS\QS;'   \Z\V-   rj\[\W-   rk/ \jQ\kQrlS\QS<'   / \lQ\^QrmS\QS='   \j\^-   \_-   \b-   \c-   \e-   \i-   \g-   rn\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  /rw\`\S\Y\]\x\y\z\{\|\}\d\f\~\/rS>S?S@.\   rS\GR                  \GR                  \Y" SA5      \GR                  \" SB5      /r\GR                  \GR                  4 V Vs/ s H  n SC  H  nU " SDU5      PM     M     snn r\(       Ga  S SKr\R                  " 5       \R                  " 5       \R                  " 5       \GR                  " 5       /r\R                  " 5       \R                  " 5       \R                  " 5       \GR                  " 5       /r\\-   r\ Vs/ s H  n\`" \" U5      5      PM     snr\R                  " 5       \GR"                  " 5       /r\ Vs/ s H  n\`" \" U5      5      PM     snr\GR(                  " SESF5      /r\GR,                  " 5       /r\GR0                  " 5       /r\GR4                  " SG5      \GR4                  " SH5      \GR6                  " SI5      \GR6                  " SJ5      /r\GR:                  " 5       \GR<                  " 5       /rSK VVs/ s H  nSL  H  n\GRA                  XSM9PM     M     snnrSK Vs/ s H  n\GRE                  U5      PM     snr\GRH                  " 5       /r\\-   \-   \-   \-   \-   \-   \-   \-   \-   r\\-   rO/ r/ r/ r/ r\Z\k-   \-   r/ SNQr/ SOQrScSdSP jjrSQ r " SR SS\5      r " ST SU\5      rSeSV jrSfSW jrSX rSgSY jrSZ rS[ rS\ rS] rS^ rS_ r/ SKQrShS` jrSiSa jr/ SbQrgs  snn f s  snf s  snf s  snnf s  snf )j    )annotations)DecimalN)	byteorder)TYPE_CHECKINGContextManager)using_string_dtype)can_set_localeget_locales
set_locale)HAS_PYARROW)
ArrowDtype	DataFrameIndex
MultiIndex
RangeIndexSeries)round_trip_pathlibround_trip_picklewrite_to_compressed)assert_produces_warningmaybe_produces_warning)assert_almost_equalassert_attr_equalassert_categorical_equalassert_class_equalassert_contains_allassert_copyassert_datetime_array_equalassert_dict_equalassert_equalassert_extension_array_equalassert_frame_equalassert_index_equal!assert_indexing_slices_equivalentassert_interval_array_equalassert_is_sortedassert_metadata_equivalentassert_numpy_array_equalassert_period_array_equalassert_series_equalassert_sp_array_equalassert_timedelta_array_equalraise_assert_detail)	get_dtypeget_obj)decompress_fileraises_chained_assignment_errorset_timezonewith_csv_dialect)ArrowExtensionArrayBaseMaskedArrayNumpyExtensionArray)NDArrayBackedExtensionArray)extract_array)Callable)DtypeNpDtype)uint8uint16uint32uint64zlist[NpDtype]UNSIGNED_INT_NUMPY_DTYPES)UInt8UInt16UInt32UInt64zlist[Dtype]UNSIGNED_INT_EA_DTYPESint8int16int32int64SIGNED_INT_NUMPY_DTYPES)Int8Int16Int32Int64SIGNED_INT_EA_DTYPESALL_INT_DTYPESfloat32float64FLOAT_NUMPY_DTYPESFloat32Float64FLOAT_EA_DTYPESALL_FLOAT_DTYPES	complex64
complex128COMPLEX_DTYPESUSTRING_DTYPESstrCOMPLEX_FLOAT_DTYPESzdatetime64[ns]zM8[ns]DATETIME64_DTYPESztimedelta64[ns]zm8[ns]TIMEDELTA64_DTYPESboolBOOL_DTYPESbytesBYTES_DTYPESobjectOBJECT_DTYPESALL_REAL_DTYPESALL_NUMERIC_DTYPES<>)littlebignanNaN)YMWDhmsmsusnspsfsasNaT      ru   rv   rw   rx   )ru   rv   rw   rx   )NUTCz
US/Pacificz
US/Eastern)unittz)__add____radd____sub____rsub____mul____rmul____floordiv____rfloordiv____truediv____rtruediv____pow____rpow____mod____rmod__)__eq____ne____le____lt____ge____gt__c                   U[         R                  L aX  [        U [        5      (       a+  [	        [
        R                  " U R                  5      5      n U $ [         R                  " U SS9n  U $ U[        L a  [        U SS9n U $ U[        L a  [        U 5      n U $ U[        L aG  [        U 5      R                  5       n U(       a%  U R                  n [         R                  " U /S-  SS9n U $ U[
        R                  L d  U[
        R                  L a  [
        R                  " U 5      n U $ U[        L a  [        U 5      n U $ [!        U5      e)z
Helper function to wrap the expected output of a test in a given box_class.

Parameters
----------
expected : np.ndarray, Index, Series
box_cls : {Index, Series, DataFrame}

Returns
-------
subclass of box_cls
F)copy   T)ignore_index)pdarray
isinstancer   r6   npasarray_valuesr   r   r   to_frameTconcatndarrayto_arrayNotImplementedError)expectedbox_cls	transposes      W/var/www/html/land-tabula/venv/lib/python3.13/site-packages/pandas/_testing/__init__.pybox_expectedr     s,    "((h
++*2::h6F6F+GHH, O) xxu5H( O' 
E	.$ O# 
F	(#  O 
I	(#,,.
  zzHyy(adCH O 
BJJ	'RXX"588H%
 O	 
H	H% O "'**    c                b    [        U SS5      nUc  [        R                  " U 5      $ [        U SS9$ )zI
Similar to pd.array, but does not cast numpy dtypes to nullable dtypes.
dtypeNT)extract_numpy)getattrr   r   r8   )objr   s     r   r   r   9  s2    
 C$'E}zz#D11r   c                  <    \ rS rSrSS/r\S 5       r\S 5       rSrg)SubclassedSeriesiF  testattrnamec                    S $ )Nc                     [        U 0 UD6$ Nr   argskwargss     r   <lambda>/SubclassedSeries._constructor.<locals>.<lambda>P      '7'H'Hr    selfs    r   _constructorSubclassedSeries._constructorI  s     IHr   c                    S $ )Nc                     [        U 0 UD6$ r   SubclassedDataFramer   s     r   r   9SubclassedSeries._constructor_expanddim.<locals>.<lambda>T      ':D'KF'Kr   r   r   s    r   _constructor_expanddim'SubclassedSeries._constructor_expanddimR      KKr   r   N)	__name__
__module____qualname____firstlineno__	_metadatapropertyr   r   __static_attributes__r   r   r   r   r   F  s6    V$II I L Lr   r   c                  :    \ rS rSrS/r\S 5       r\S 5       rSrg)r   iW  r   c                    S $ )Nc                     [        U 0 UD6$ r   r   r   s     r   r   2SubclassedDataFrame._constructor.<locals>.<lambda>\  r   r   r   r   s    r   r    SubclassedDataFrame._constructorZ  r   r   c                    S $ )Nc                     [        U 0 UD6$ r   r   r   s     r   r   9SubclassedDataFrame._constructor_sliced.<locals>.<lambda>a  r   r   r   r   s    r   _constructor_sliced'SubclassedDataFrame._constructor_sliced_  s    HHr   r   N)	r   r   r   r   r   r   r   r   r   r   r   r   r   r   W  s3    IL L I Ir   r   c                J    [         R                  nUR                  U 5      U-   $ )a+  
Convert list of CSV rows to single CSV-formatted string for current OS.

This method is used for creating expected value of to_csv() method.

Parameters
----------
rows_list : List[str]
    Each element represents the row of csv.

Returns
-------
str
    Expected output of to_csv() in current OS.
)oslinesepjoin)	rows_listseps     r   convert_rows_list_to_csv_strr   d  s!      **C88I$$r   c                *    SSK nUR                  U SS9$ )z
Helper function to mark pytest.raises that have an external error message.

Parameters
----------
expected_exception : Exception
    Expected error to raise.

Returns
-------
Callable
    Regular `pytest.raises` function with `match` equal to `None`.
r   N)match)pytestraises)expected_exceptionr   s     r   external_error_raisedr   x  s     ==+4=88r   c                F    / nU H  u  p4UR                  XU45        M     U$ )a~  
Combine frame, functions from com._cython_table
keys and expected result.

Parameters
----------
ndframe : DataFrame or Series
func_names_and_expected : Sequence of two items
    The first item is a name of an NDFrame method ('sum', 'prod') etc.
    The second item is the expected return value.

Returns
-------
list
    List of three items (DataFrame, function, expected result)
)append)ndframefunc_names_and_expectedresults	func_namer   s        r   get_cython_table_paramsr     s,    " G6	H56  7Nr   c                   ^ U R                  S5      n [        [        U5      nU$ ! [         a    [        [        USS 5      mU4S jn U$ f = f)z
The operator function for a given op name.

Parameters
----------
op_name : str
    The op name, in form of "add" or "__add__".

Returns
-------
function
    A function performing the operation.
_   Nc                   > T" X5      $ r   r   )xyrops     r   r   "get_op_from_name.<locals>.<lambda>  s	    #a)r   )stripr   operatorAttributeError)op_nameshort_opnameopr   s      @r   get_op_from_namer     sY     ==%L$X|, I  $hQR 01#I$s   & #AAc                    U $ r   r   r   s    r   getitemr        Hr   c                    U $ r   r   r  s    r   setitemr    r  r   c                    U R                   $ r   )locr  s    r   r  r        55Lr   c                    U R                   $ r   )ilocr  s    r   r  r    s    66Mr   c                    U R                   $ r   )atr  s    r   r  r    s    44Kr   c                    U R                   $ r   )iatr  s    r   r  r    r	  r   c                b    [         R                  U 5      [         R                  U5      :  a  U $ U$ )z*
Find the higher of two datetime64 units.
)_UNITSindex)leftrights     r   get_finest_unitr    s(     ||DV\\%00Lr   c                   [        U [        R                  5      (       a5  [        U[        R                  5      (       a  [        R                  " X5      $ [        U [        R                  5      (       a  [        X5      $ [        U [        5      (       a  g[        U [
        5      (       a  [        U R                  U5      $ [        U [        [        45      (       aQ  [        U[        [        45      (       a   [        U R                  UR                  5      $ [        U R                  U5      $ [        U [        5      (       a  [        U R                  U5      $ [        U [        R                  R                  R                  5      (       a  [        U R                   U5      $ [        U [        R                  R                  R"                  5      (       a3  [        U R$                  U5      =(       d    [        U R&                  U5      $ [        U [(        5      (       a  [        U[(        5      (       au  U R*                  nUR*                  nUR-                  S5      R/                  5       S   nUR-                  S5      R/                  5       S   nUR0                  UR0                  :H  $ [        R                  " X5      $ [        U [2        5      (       ar  [        U[2        5      (       a]  [        R                  " U R4                  UR4                  5      =(       d+    [        R                  " U R6                  UR6                  5      $ [        U [8        5      (       aQ  [;        U R<                  R>                  5      S:X  a.  U R<                  R>                  S   R@                  n[        Xa5      $ [C        [E        U 5      [E        U5      5      e)z%
Pandas-compat for np.shares_memory.
Fr   r   )#r   r   r   shares_memoryr   r   _codesr   r   r   r7   _ndarrayr   corearraysSparseArray	sp_valuesIntervalArray_left_rightr4   	_pa_arraychunkbuffersaddressr5   _data_maskr   len_mgrblocksvaluesr   type)r  r  left_pa_dataright_pa_data	left_buf1
right_buf1arrs          r   r  r    s    $

##
5"**(E(E,,	D"**	%	%U))$
##$
##T[[%00$((eeV_-- u}}==T\\511$344T]]E22$2233T^^U33$4455TZZ/T=e3TT$+,,e011>>L!OOM$**1-557:I&,,Q/779!<J$$
(:(::: ##D00$((Z-O-O 

EKK8 
B<L<LJJ=
 	
 $	""s499+;+;'<'Aiiq!((S((
d4j$u+
66r   )IALL_INT_EA_DTYPESALL_INT_NUMPY_DTYPESALL_NUMPY_DTYPESALL_REAL_NUMPY_DTYPESrb   rd   rZ   r_   ENDIANrV   rS   NARROW_NP_DTYPESNP_NAT_OBJECTSNULL_OBJECTSrf   rO   rJ   r\   r`   rE   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   r0   r   r   r.   r  r
   r/   r   r  r  r  r  r   r-   r1   r   r   r   r2   r  r  r   r3   r   )T)r   ra   )r   z	list[str]returnr]   )r   ztype[Exception]r9  r   )r   r]   r9  r9   )r  r]   r  r]   r9  r]   )r9  ra   )
__future__r   decimalr   r   r   sysr   typingr   r   numpyr   pandas._configr   pandas._config.localizationr	   r
   r   pandas.compatr   pandasr   r   r   r   r   r   r   pandas._testing._ior   r   r   pandas._testing._warningsr   r   pandas._testing.assertersr   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   pandas._testing.compatr.   r/   pandas._testing.contextsr0   r1   r2   r3   pandas.core.arraysr4   r5   r6   pandas.core.arrays._mixinsr7   pandas.core.constructionr8   collections.abcr9   pandas._typingr:   r;   r@   __annotations__rE   intrJ   rO   r2  r1  rP   floatrS   rV   rW   complexrZ   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   r4  ALL_REAL_EXTENSION_DTYPESrg   rh   r3  float16rQ   rF   rG   rH   r<   r=   r>   r6  listtuplerangedictset	frozenset	bytearray
memoryviewPYTHON_DATA_TYPESr5  rm   r|   NAr8  
datetime64timedelta64r7  pyarrowpar?   UNSIGNED_INT_PYARROW_DTYPESrI   SIGNED_INT_PYARROW_DTYPESALL_INT_PYARROW_DTYPESALL_INT_PYARROW_DTYPES_STR_REPRrR   FLOAT_PYARROW_DTYPESFLOAT_PYARROW_DTYPES_STR_REPR
decimal128DECIMAL_PYARROW_DTYPESstringSTRING_PYARROW_DTYPESbinaryBINARY_PYARROW_DTYPEStime32time64TIME_PYARROW_DTYPESdate32date64DATE_PYARROW_DTYPES	timestampDATETIME_PYARROW_DTYPESdurationTIMEDELTA_PYARROW_DTYPESbool_BOOL_PYARROW_DTYPESALL_PYARROW_DTYPES ALL_REAL_PYARROW_DTYPES_STR_REPRALL_REAL_NULLABLE_DTYPESarithmetic_dunder_methodscomparison_dunder_methodsr   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r  r  __all__)clsr   typr   s   0000r   <module>r     s;   "   	 
  -  &   
     0  
 C 2( ,S = R&M  M*-vw)Q  Q$G k G03JJ *-AA I 4I7HI I%*Iy$A M A )95 5 G"4 G G + G&\B B"%M;&"%uc!2M;2$Jn$J7I$J k J"2H!= ; =#4h"? K ? &>[ )"G,k ,$h/{ /*-AA +.?? S!6S9RS S"EO"En"E K E   	
     JJJJGGHHHHHHIIII	  				 " 	$Y	/bffbffeElBEE75>J r~~.. t .( #%88:ryy{BIIK"U!#BHHJ
BHHJ O8;TT(>'(>JsO(>'# JJL"**,7(<%(<JsO(<%! !mmAq12YY[MYY[M 			#
		$
		$
		$	 99;		4 ,+D;B 	$&; 	'+
 ?VV>UdD 1>UV88:,
 	
	
 	!  	   		 
 	 	 "	" #	# 		  	(*GG % %'!&(#')$ 225UU  " Y &R
2Lv L"
I) 
I%(9&.: 
!27jJk4'%
  Ws   	U UU$U<U