
    4io                     FF   S r SSKJr  SSKJr  SSKrSSKrSSKrSSK	r	SSK
Jr  SSKr\	R                  R                  SS9r\R"                  R%                  SS	/SS
//SS/S9rSS
/04rS/ SQ0\4r/ \R,                  S/4\R.                  " S/ 5      4P\R,                  S/4\R.                  " SS/5      4P\R,                  S/4\R.                  " SS5      4P\R,                  S/4\R.                  " S5      4P\R,                  S/4\R.                  " SSS94P\R,                  S/4\R.                  " S5      4P\R,                  SS/4\R.                  " S5      4P\R,                  SS/4\R.                  " S5      4P\R,                  SS/4\R.                  " S5      4P\R,                  SS/4\R.                  " SS 5      4P\R,                  SS/4\R.                  " SS5      4P\R,                  SS/4\R.                  " SSS	/5      4P\R,                  SS/4\R.                  " SS
S/5      4P\R,                  SS/4\R.                  " SS/5      4P\R,                  \R0                  " S\R2                  /5      4\R.                  " S S5      4P\R,                  SS/4\R.                  " S!SS
05      4P\R,                  SS/4\R.                  " S"5      4P\R,                  SS/4\R.                  " S#SS
/5      4P\R,                  SS/4\R.                  " S$SS5      4P\R,                  SS/4\R.                  " S%5      4P\R,                  SS/4\R.                  " S&5      4P\R,                  SS/4\R.                  " S'5      4P\R,                  SS/4\R.                  " S(5      4P\R,                  S
/4\R.                  " S)\R,                  " S
/5      5      4P\R,                  S/\R4                  " S*S
S+94\R.                  " S,5      4P\R,                  S/\R6                  " S*S
S+94\R.                  " S-5      4P\	R8                  " \R:                  \\R.                  " S.\R:                  " S/S/95      4\	R                  R                  S0S9S19P\R:                  \\R.                  " S25      4P\R:                  \\R.                  " SS5      4P\R:                  \\R.                  " SS/5      4P\R:                  \\R.                  " S\R0                  " S/5      5      4P\R:                  S3S
/04\R.                  " SS/5      4P\R:                  \\R.                  " S4S55      4P\R:                  \\R.                  " S6S7S8S994P\R:                  \\R.                  " S:S;S<94P\R:                  \\R.                  " S=S
S>94P\R:                  \\R.                  " SS/5      4P\R:                  \\R.                  " SSS
/5      4P\R:                  \\R.                  " SS/S?94P\R:                  \\R.                  " SS/S/94P\R:                  \\R.                  " SSS0S?94P\R:                  \\R.                  " SS@ S/94P\R:                  \\R.                  " S S5      4P\R:                  \\R.                  " SAS5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S%5      4P\R:                  \\R.                  " S&5      4P\R:                  \\R.                  " S'5      4P\R:                  \\R.                  " S(5      4P\R:                  \\R.                  " SB5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " SCSSD94P\R:                  \\R.                  " SE5      4P\R:                  \\R.                  " SFS
S5      4P\R:                  \\R.                  " SGS
S5      4P\R:                  \\R.                  " SH5      4P\R:                  \\R.                  " S)\R:                  " \6 5      4P\R:                  \\R.                  " SI\R:                  " \6 \R<                  5      4P\R:                  \\R.                  " SJ\R:                  " \6 5      4P\	R8                  " \R:                  \\R.                  " SK\R:                  " \6 5      4\S19P\R:                  \\R.                  " SLSS?94P\R:                  S
/S
/SM.4\R.                  " SNSS?94P\R:                  S
/S
/SM.4\R.                  " SNSSOSP/SQ94P\R:                  \\R.                  " SR5      4P\R:                  \\R.                  " SSS5      4P\R:                  \\R.                  " ST5      4P\R:                  / SUQ/ SVQ/ SWQSX.4\R.                  " SYS/S/SZ94P\R:                  \\R.                  " S[S\ 5      4P\R:                  \\R.                  " SS5      4P\R:                  \\R.                  " S]5      4P\	R8                  " \R:                  \\R.                  " S^5      4\	R                  R?                  S_5      /S19P\R:                  \\R.                  " S`\R:                  " \6 5      4P\R:                  \\R.                  " Sa5      4P\R:                  \\R.                  " Sb5      4P\R:                  \\R.                  " Sc5      4P\R:                  \\R.                  " Sd5      4P\R:                  \\R.                  " Se5      4P\R,                  S/\R.                  " Se5      4P\R:                  \\R.                  " Sf5      4P\R:                  \\R.                  " SgSSh94P\R:                  \\R.                  " SgSiSj/SSk94P\R:                  S\R@                  " S
Sl9\R@                  " SSl9/04\R.                  " SgSmSh94P\R:                  S\RB                  " Sn5      \RB                  " So5      /04\R.                  " SgSSh94P\R:                  SS
/0\RD                  " S*Sp5      /4\R.                  " S,5      4P\R:                  SS
/0\RF                  " S*5      /4\R.                  " S-SpSq94P\R:                  \\R.                  " S#S
/5      4P\R:                  \\R.                  " S#\R,                  " S
/5      5      4P\R:                  \\R.                  " S#\R:                  " SS
/05      5      4P\R:                  \\R.                  " SrS5      4P\R:                  \\R.                  " SsS5      4P\R:                  \\R.                  " StSuSv94P\R,                  S
S/4\R.                  " St5      4P\R,                  S
S/4\R.                  " SwSS/94P\R:                  \\R.                  " SwSS?94P\R:                  \\RH                  4P\R,                  S
/\RH                  4P\R:                  \\RJ                  4P\R,                  S
/\RJ                  4P\R:                  \\RL                  4P\R,                  S
/\RL                  4P\R:                  \\'4P\R,                  S
/\'4P\R:                  \\(4P\R,                  S
/\(4P\R:                  \\R.                  " SSS/5      4P\R:                  \\R.                  " SxS5      4P\R,                  S
\4\R.                  " SxS5      4P\R:                  \\R.                  " SyS5      4P\R:                  \\R.                  " Sz\R:                  " S/ S{Q05      5      4P\R,                  \\R.                  " Sz\R,                  " / S|Q5      5      4P\R:                  \\R.                  " S}S~5      4P\R:                  \\R.                  " SS~5      4P\R,                  S
SS	/4\R.                  " S}S~5      4P\R,                  S
SS	/4\R.                  " SS~5      4P\R,                  SS/4\R.                  " SC5      4P\R,                  S
/S-  4\R.                  " S5      4P\R:                  SS
/S-  04\R.                  " S5      4P\R,                  S
/S-  4\R.                  " S5      4P\R:                  SS
/S-  04\R.                  " S5      4P\R,                  S
S/4\R.                  " SSSS94P\R:                  \4\R.                  " SSSS94P\R,                  S
S/4\R.                  " S\)5      4P\R:                  \\R.                  " S\)5      4P\R,                  S
S/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
S/S\*4\R.                  " S5      4P\R:                  S\R0                  " S
S/\*S904\R.                  " S5      4P\R,                  S
S/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  / SQ4\R.                  " S5      4P\R:                  S/ SQ04\R.                  " S5      4P\R,                  S
S/4\R.                  " SS
S94P\R:                  \\R.                  " SS
S94P\R,                  S
\R6                  " S*SS+94\R.                  " SS5      4P\R:                  S/ SQ0\R6                  " S*SS+94\R.                  " SS5      4P\R,                  S
\R6                  " S*SS+94\R.                  " S\" S5      5      4P\R:                  S/ SQ0\R6                  " S*SS+94\R.                  " S\" S5      5      4P\R,                  S
\R6                  " S*SS+94\R.                  " SSS5      4P\R:                  S/ SQ0\R6                  " S*SS+94\R.                  " SSS5      4P\R,                  S
S/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
S/4\R.                  " S\R0                  " SSm/5      5      4P\R:                  \\R.                  " S\R0                  " S//5      5      4P\R,                  S
S/4\R.                  " S\R0                  " SSm/5      5      4P\R:                  \\R.                  " S\R0                  " S//5      5      4P\R,                  S
S/4\R.                  " SSS94P\R:                  \\R.                  " SSS94P\R,                  S
\R6                  " S*SSS94\R.                  " SS5      4P\R:                  S/ SQ0\R6                  " S*SSS94\R.                  " SS5      4P\R,                  S
\R6                  " S*SS+94\R.                  " SS5      4P\R:                  S/ SQ0\R6                  " S*SS+94\R.                  " SS5      4P\R,                  S
S/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
S/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
/4\R.                  " SS 5      4P\R:                  \\R.                  " SS 5      4P\R,                  S
/4\R.                  " SS 5      4P\R:                  \\R.                  " SS 5      4P\R,                  S
/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R,                  S
/4\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " SP5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " SO5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4P\R:                  \\R.                  " S5      4Pr+S r,\	R                  R[                  S\+S S9S 5       r.\S 5       r/\	R                  R[                  S/ SQ5      \	R                  R[                  SS
\R,                  " S
/5      4S
\R:                  " SS
/05      4\R,                  " S
/5      S
4\R:                  " SS
/05      S
4\R,                  " S
/5      \R,                  " S
/5      4\R:                  " SS
/05      \R:                  " SS
/05      4\R,                  " S
/5      \R:                  " SS
/05      4\R:                  " SS
/05      \R,                  " S
/5      4/S S9S 5       5       r0\	R                  R[                  S\R,                  \R:                  /5      \	R                  R[                  S\R,                  \R:                  /5      S 5       5       r1\	R                  R[                  S/ \R.                  " S5      P\R.                  " S5      P\R.                  " SS/5      P\R.                  " SS5      P\R.                  " SaS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SSSmS9P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SyS5      P\R.                  " SS5      P\R.                  " S5      P\R.                  " SS5      P\R.                  " S5      P\R.                  " S5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " S!SS	5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " S5      P\R.                  " SS5      P\R.                  " SS
SS9P\R.                  " SS5      P\R.                  " S5      P\R.                  " S5      P\R.                  " SSS	05      P\R.                  " S5      P\R.                  " SS5      P\R.                  " SS5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\R.                  " S5      P\,S9S 5       r2\	R                  R[                  S\R.                  " S-5      \R.                  " SS5      \R.                  " S5      \R.                  " SS5      \R.                  " SS5      \R.                  " SS5      \R.                  " SS5      \R.                  " S5      \R.                  " S5      /	\,S9S 5       r3\	R                  R[                  S/ SQ5      GS  5       r4\	R                  R[                  S/ GSQ5      GS 5       r5\	R                  R[                  S\R.                  " GS5      /5      GS 5       r6\	R                  R[                  S\R.                  " GSGS/5      \R.                  " GS5      \R.                  " GS5      GS	 \R.                  " GS
S5      \R.                  " GS5      \R.                  " GSSSGS.5      \R.                  " GSS	S/5      \R.                  " GSSS/5      /	5      \GS 5       5       r7\	R                  R[                  GS\R,                  " SS/5      \R:                  " SS
/S
S/SM.5      /5      \	R                  R[                  S\R.                  " SP5      GS GS GS GS /5      GS 5       5       r8\	R                  R[                  GS\R,                  " SS/5      \R:                  " SS
/S
S/SM.5      /5      \	R                  R[                  SGS GS GS GS GS GS /5      \GS 5       5       5       r9GS r:\	R                  R[                  GSGS // GS!Q5      \	R                  R[                  GS"/ GS#Q5      GS"\GS\;GS \;4GS$ j5       5       r<\	R                  R[                  GSGS // GS!Q5      GS\;GS \;4GS% j5       r=GS& r>GS' r?\	R                  R[                  / GS(QSmS0 4SSm0 4SmSm0 4// GS)QS9GS*\;GS+\;GS,\@4GS- j5       rAg(.  zG
An exhaustive list of pandas methods exercising NDFrame.__finalize__.
    )deepcopy)timeN)MergeHowznot implemented)reasonab   AB)names)r	            take__getitem__Trepeatr   reset_index)dropto_framedrop_duplicates
duplicatedroundrenamec                     U S-   $ )Nr	    xs    d/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/pandas/tests/generic/test_finalize.py<lambda>r   /   s    QU    nameset_axisreindexr   fillnareplaceshiftisinbetweenisnaisnullnotnanotnulladd2000periodsto_timestamp	to_perioddot)indexzImplement binary finalize)marks	transpose)r
   r   queryzA == 1evalA + 1pythonengineselect_dtypesint)includeassign)r   )columnsc                     U $ Nr   r   s    r   r   r   _   s    qr    	set_indexdropnasort_values)by
sort_indexnlargest	nsmallest	swaplevelcombinecombine_firstupdatepivot)r
   r   pivot_tablemeansum)rA   aggfuncstackexplodeunstack)r   r   c)r	   r      )r   r      )r
   r   Cmelt)id_vars
value_varsmapc                     U $ rC   r   r   s    r   r   r      s    ar    corrcovzignore::RuntimeWarningcorrwithcountnuniqueidxminidxmaxmodemedianquantile)numeric_onlyg      ?g      ?)qrj   )daysFz
2022-01-01z
2022-01-02D)freq	droplevelpopsqueezerA   axisrename_axisxsgetreindex_like)r	   r   r   )r   r	   r   
add_prefix_
add_suffixr   
   headtailsample)nr%   astypecopyinfer_objectsdtypeconvert_dtypes)r	   Nr   interpolateclip)lowerr   asfreqh)r	   r	   r	   r	   at_time   between_timez12:00z13:00rankwheremasktruncate)beforeUTC)r0   tz
tz_convertCETtz_localizedescribe
pct_change	transformc                 &    X R                  5       -
  $ rC   minr   s    r   r   r   M  s    Q[r    c                 &    X R                  5       -
  $ rC   r   r   s    r   r   r   Q  s    Q[r    applyc                     U $ rC   r   r   s    r   r   r   S  s    r    c                     U $ rC   r   r   s    r   r   r   T  s    1r    cumsumcummincummaxcumprodanyallr   maxstdprodsemskewkurtc                     [         R                  " S5      nUR                  [        U 5      5      nU(       a  UR	                  S5      $ [        U 5      $ )Nz'(.*)?'r	   )recompilesearchstrgroup)r   xprms      r   idfnr   m  s<    
**Z
 C

3q6Awwqz1vr    ndframe_methodc                     [        U S   5      $ )N)r   r   s    r   r   r   v  s    tAbE{r    )idsc                 b    U u  pnU" U6 nSS0Ul         U" U5      nUR                   SS0:X  d   eg )Nr   r	   attrs)r   cls	init_argsmethodndframeresults         r   test_finalize_calledr   v  s?    +CF9oG!HGMG_F<<C8###r    c                      [         R                  " S5        [        R                  " SSS/05      n SU R                  S'   U R                  SSS9nUR                  SS0:X  d   eg )Nnumexprr
   r	   r   r9   r;   )pytestimportorskippd	DataFramer   r8   dfr   s     r   !test_finalize_called_eval_numexprr     s[    
	"	sQFm	$BBHHSMWWWYW/F<<C8###r    annotate)leftrightbothargsc                 l    S[        U S   5      R                   S[        U S   5      R                   S3$ )N(r   ,r	   ))type__name__r   s    r   r   r     s1    Ad1Q4j))*!D1J,?,?+@Br    c                    Uu  pE[        U[        R                  [        R                  45      (       a  0 Ul        [        U[        R                  [        R                  45      (       a  0 Ul        US:X  a+  [        U[
        5      (       a  [        R                  " S5        US:X  a+  [        U[
        5      (       a  [        R                  " S5        US;   a  [        U[
        5      (       d	  SS0Ul        US;   a  [        U[
        5      (       d	  SS0Ul        U[        R                  [        R                  [        R                  [        R                  [        R                  [        R                  4;   nU(       aQ  [        U[        R                  5      (       a2  [        U[        R                  5      (       a  UR                  USS	9u  pEOWU(       aP  [        U[        R                  5      (       a1  [        U[        R                  5      (       a  UR                  USS	9u  pTU" XE5      nUR                  SS0:X  d   eg )
Nr   z)left is an int and doesn't support .attrsr   z*right is an int and doesn't support .attrs>   r   r   r   r	   >   r   r   rr   )
isinstancer   r   Seriesr   r>   r   skipoperatoreqnegtgeltlealign)requestr   r   all_binary_operatorsr   r   is_cmpr   s           r   test_binopsr     s   " KD$ryy122
%",,		2336js33?@7z%55@A##JtS,A,A1X
$$Zs-C-CAh!& F *T2<<00Zryy5Q5QjjQj/e	JtRYY//Jubll4S4Skk$Qk/!$.F<<C8###r    r   r   c                     SS0nU" S/5      nX1l         U" S/5      nU " X5      R                   U:X  d   eU " X!5      R                   U:X  d   eg )Nr   r	   r   r   )r   r   r   r   s       r   test_attrs_binary_operationsr     sZ     !HE9DJ1#JE,22e;;;,22e;;;r    r   
capitalizecasefoldcatcontainsencodezutf-8endswithextractz(\w)(\d))expandfindfindallr4   lenljustr   lstripmatchz\w	normalizeNFCpad	partitionrfindrindexrjust
rpartitionrstripsliceslice_replace)repl
startswithstripswapcase	translateupperwrapzfillisalnumisalphaisdigitisspaceislowerisupperistitle	isnumeric	isdecimalget_dummiesc                     [         R                  " S/5      nSS0Ul        U " UR                  5      nUR                  SS0:X  d   eg )Na1r   r	   )r   r   r   r   r   sr   s      r   test_string_methodr    sC    l 			4&AAhAGAEE]F<<C8###r    strftimez%Yfloorceil
month_nameday_namec                     [         R                  " [         R                  " SSS95      nSS0Ul        U " UR                  5      nUR                  SS0:X  d   eg Nr.   r   r/   r   r	   )r   r   
date_ranger   dtr  s      r   test_datetime_methodr#    sK      			"--23AAhAGADD\F<<C8###r    attr)dater   timetzyearmonthdayhourminutesecondmicrosecond
nanosecond	dayofweekday_of_week	dayofyearday_of_yearquarteris_month_startis_month_endis_quarter_startis_quarter_endis_year_startis_year_endis_leap_yeardaysinmonthdays_in_monthc                     [         R                  " [         R                  " SSS95      nSS0Ul        [	        UR
                  U 5      nUR                  SS0:X  d   eg r   )r   r   r!  r   getattrr"  r$  r  r   s      r   test_datetime_propertyr@  #  sN    > 			"--23AAhAGQTT4 F<<C8###r    )rl   secondsmicrosecondsnanoseconds
componentsc                     [         R                  " [         R                  " SSS95      nSS0Ul        [	        UR
                  U 5      nUR                  SS0:X  d   eg r   )r   r   timedelta_ranger   r>  r"  r?  s      r   test_timedelta_propertyrG  H  sP     			"$$VQ78AAhAGQTT4 F<<C8###r    total_secondsc                     [         R                  " [         R                  " SSS95      nSS0Ul        U " UR                  5      nUR                  SS0:X  d   eg r   )r   r   rF  r   r"  r  s      r   test_timedelta_methodsrJ  R  sK    
		"$$VQ78AAhAGADD\F<<C8###r    add_categoriesrW   
as_orderedas_unorderedc                     U R                   $ rC   )codesr   s    r   r   r   `  s    !''r    remove_categoriesremove_unused_categoriesrename_categories)r   r   reorder_categoriesset_categoriesc                     [         R                  " SS/SS9nSS0Ul        U " UR                  5      nUR                  SS0:X  d   eg )Nr   r   categoryr   r	   )r   r   r   r   r  s      r   test_categorical_accessorrW  Z  sF      			3*J/AAhAGAEE]F<<C8###r    objc                 &    U R                  S 5      $ )Nc                     U $ rC   r   )ys    r   r   <lambda>.<locals>.<lambda>{  s    Ar    )r   r   s    r   r   r   {  s    !''+&r    c                 $    U R                  S5      $ )NrR   aggr   s    r   r   r   |      !%%,r    c                 $    U R                  S5      $ )NrQ   r^  r   s    r   r   r   }      !%%-r    c                 $    U R                  S5      $ )Nrh   r^  r   s    r   r   r   ~  s    !%%/r    c                 n    SS0U l         U" U R                  SS/SS95      nUR                   SS0:X  d   eg )Nr   r	   r   F)
group_keysr   groupbyrX  r   r   s      r   test_groupby_finalizeri  t  s@     aCICKKA5K9:F<<C8###r    c                 (    U R                  SS/5      $ )NrR   rc   r^  r   s    r   r   r     s    !%%()r    c                 $    U R                  S5      $ )Nr   r^  r   s    r   r   r     r`  r    c                 $    U R                  S5      $ )Nvarr^  r   s    r   r   r     r`  r    c                 $    U R                  S5      $ )Nr   r^  r   s    r   r   r     r`  r    c                 $    U R                  S5      $ )Nsizer^  r   s    r   r   r     rb  r    c                 $    U R                  S5      $ )Nohlcr^  r   s    r   r   r     rb  r    c                 p    SS0U l         U" U R                  SS/5      5      nUR                   SS0:X  d   eg )Nr   r	   r   rf  rh  s      r   %test_groupby_finalize_not_implementedrt    s<      aCICKKA'(F<<C8###r    c                      [         R                  " SSS/05      n [         R                  " SS/5      R                  U 5      nUR                  b   eg )Nr!   r	   r   )r   r   r   __finalize__r!   r   s     r   test_finalize_frame_series_namerw    sH     
v1v&	'BYY1v++B/F;;r    allow_on_leftallow_on_right))FF)FT)TF)TThow)r   r   innerouter	left_anti
right_anticrossc                 6   [         R                  " SS/05      R                  US9n[         R                  " SS/05      R                  US9nU S:X  d  UR                  X@SS9nOUR                  X@S9nU=(       a    UnUR                  R
                  U:X  d   eg )Ntestr	   allows_duplicate_labelsr  rz  on)rz  )r   r   	set_flagsmergeflagsr  )rz  rx  ry  r   r   r   expected_duplication_allowances          r   4test_merge_correctly_sets_duplication_allowance_flagr    s    * <<!&000WDLL&1#'11 . 2 E '>Ev6E+%2%E~"<<//3QQQQr    c                    [         R                  " SS/05      R                  U S9n[         R                  " SS/05      R                  US9n[         R                  " X#5      nU =(       a    UnUR                  R
                  U:X  d   eg )Nr  r	   r  )r   r   r  
merge_asofr  r  )rx  ry  r   r   r   r  s         r   9test_merge_asof_correctly_sets_duplication_allowance_flagr    s     <<!&000WDLL&1#'11 . 2 E ]]4'F%2%E~"<<//3QQQQr    c                     SSS/0n [         R                  " SS/05      nXl        [         R                  " SS/05      n[        U 5      Ul        UR	                  USSS9nUR                  U :X  d   eUR                  UR                  Ld   eUR                  UR                  Ld   eUR                  S   UR                  S   Ld   eUR                  S   UR                  S   Ld   eg )Nr   r	   r   r  r{  r  )r   r   r   r   r  )metadatar   r   r   s       r   8test_merge_propagates_metadata_from_equal_input_metadatar    s    aV}H<<!&DJLL&1#'E8$EKZZ7vZ6F<<8### <<tzz)))<<u{{***<<DJJsO333<<EKK$4444r    c                      [         R                  " SS/05      n SS0U l        [         R                  " SS/05      nSS0Ul        U R                  USSS9nUR                  0 :X  d   eg )	Nr  r	   r   r   r   r   r{  r  r   r   r   r  )r   r   r   s      r   Btest_merge_does_not_propagate_metadata_from_unequal_input_metadatar    sf    <<!&DqDJLL&1#'E(EKZZ7vZ6F<<2r    )left_has_metadataright_has_metadataexpected)z
left-emptyzright-emptyz
both-emptyr  r  r  c                    [         R                  " SS/05      n[         R                  " SS/05      nU (       a  SSS/0Ul        O0 Ul        U(       a  SSS/0Ul        O0 Ul        UR                  USSS9nUR                  U:X  d   eg )Nr  r	   r   r   r{  r  r  )r  r  r  r   r   r   s         r   Ctest_merge_does_not_propagate_metadata_if_one_input_has_no_metadatar    s     <<!&DLL&1#'EAq6]

QFmZZ7vZ6F<<8###r    )B__doc__r   r   datetimer   r   r   numpynpr   pandas._typingr   pandasr   markxfailnot_implemented_mark
MultiIndexfrom_productmi
frame_dataframe_mi_datar   methodcallerarrayNAperiod_ranger!  paramr   r-   filterwarnings	Timedelta
datetime64Period	Timestampnegposinvabsr   floatobject_all_methodsr   parametrizer   r   r   r   r  r#  r@  rG  rJ  rW  ri  rt  rw  boolr  r  r  r  dictr  r   r    r   <module>r     s(      	   #  {{((0A(B ]]#saV 4S#JGQCj]
|$b)EYY!--fb9:EYY!--mdVDEE YY!--h:;E YY!--m<=	E
 YY!--m$GHE YY!--j9:E YY!Q	8001BCDE YY!Q	800>?E YY!Q	8009:E YY!Q	800?KLE YY!Q	8006BCE YY!Q	800c3ZHIE YY!Q	800QFCDE YY!Q	800!=>E YY1bee*%')>)>x)KLE  YY!Q	800QFCD!E" YY!Q	8009:#E$ YY!Q	800!Q@A%E& YY!Q	800AqAB'E( YY!Q	80089)E* YY!Q	800:;+E, YY!Q	8009:-E. YY!Q	800;</E0 YY!--eRYYs^DE1E6 			
boofa01n-5E@ 			
bmmFA./k*?EH LLLL!!%SE)BC	

 kk'BCIEX \\:x44[ABYEZ \\:x44]CHI[E\ \\:x44]SEJK]E^ \\:x44]BHHdVDTUV_E` \\Z!%')>)>}se)TUaEb \\:x44WhGHcEd \\:x44VWXVWeEf \\:x44_eTUgEh \\:x44XCDiEj \\:x44Z#GHkEl \\:x44YAGHmEn \\:x44VcUKLoEp \\:x44VA3GHqEr \\:x44XSzRSsEt \\:x44X[QRuEv \\:x44XsCDwEx \\:x44[#FGyEz \\:x44]CD{E| \\:x44V<=}E~ \\:x44X>?E@ \\:x44W=>AEB \\:x44Y?@CED \\:x44X>?EEF \\:x445FGHGEH \\:x44\BCIEJ \\:x44]sKLKEL \\:x44\BCMEN \\:x44ZCHIOEP \\:x44[!SIJQER \\=("7"7"DESEV 	eR\\:%>?UEb 	iz)BHLLQaEl 	or||Z/HIkEt LLLL!!(BLL*,EF	

 #uED \\:x44WcJKEEH 	s!	mS9GER 	s!	mS65/RQEZ \\:x44W=>[E\ \\:x44YDE]E^ \\=("7"7	"BC_Eb 	YY	?AfseFaEj \\:x44UKHIkEl \\:x44Wa@AmEn \\:x44V<=oEp LL	z8#8#8#?@KK&&'?@
qE~ 	j",,
*CD}EF \\:x44W=>GEH \\:x44Y?@IEJ \\:x44X>?KEL \\:x44X>?MEN \\:x44V<=OEP YYX**623QER \\:x44X>?SEV 	jt<UE` 	jT4LtL_Ej 	
!$bll&:;	<>ju=iEt 	
l+R]]<-HI	JLjt<sE~ 	
sbii,-.n-}EH 	
sbll6*+,k4GEP \\=("7"7"DEQER \\=("7"7		1#"OPSEV 	fbllC!:&>?UE^ \\=("7"7S"IJ_E` \\:x44UC@AaEd \\:x44YYOPeEf YY!Q	800;<gEh YY!Q	800cJKiEj \\:x44]CPQkEn \\:x||,oEp YYX\\"qEr \\:x||,sEt YYX\\"uEv \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