+
    xȇib'                     Z    ^ RI t^ RIt^ RIt^ RIHtHtHtHtH	t	 ^ RI
Ht  ! R R4      tR# )    N)	DataFrame
RangeIndexSeriesconcat
date_rangec                   X  a  ] tR t^t o R tR t]P                  P                  RRR.4      ]P                  P                  R. . RO.4      R 4       4       t	]P                  P                  R]
P                  ]
P                  ]
P                  3]
P                  ]
P                  ]
P                  3R	]
P                  ]
P                  3R	]
P                  ]
P                  3R
]
P                  ]
P                  3R
]
P                  ]
P                  3RR.4      R 4       t]P                  P                  R. RO4      R 4       t]P                  P                  R. RO4      ]P                  P                  R. RO4      R 4       4       tR tR tR tR tR tR tR tR tR tR tRtV tR# ) TestEmptyConcatc           	     >   \        \        P                  P                  ^4      P	                  R4      \        R4      R7      pVR,          P                  4       pRVR&   VR,          pWEWSR,          .p\        V^ VR7      pVP                  . ROR7      pVR,          P                  V'       g   \        MR	4      VR&   RVP                  R&   \        P                  ! Wx4       \        R
\        R4      /\        RRRR7      R7      p\        4       p\        W5.^R7      p	\        P                  ! W4       \        WS.^R7      p	\        P                  ! W4       \        W5.4      p	\        P                  ! W4       \        WS.4      p	\        P                  ! W4       R# )   abcdcolumns:N   Nbarfoo:r   r   N:r   NN)axissortstrAi'  20130101s)periodsfreqindexr   N)
      )abcdr   ):r   r   Nr   )r   nprandomdefault_rngstandard_normallistcopyr   reindexastypeobjectloctmassert_frame_equalranger   )
selfr   using_infer_stringdfdfcopyemptyframes	concattedexpectedresults
   &&&       v/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/reshape/concat/test_empty.pytest_handle_empty_objects)TestEmptyConcat.test_handle_empty_objects   sU   II!!!$44W=tF|
 Bu32/65	::&A:B"5/00,F%
 $)Z 
i2 %,z*eRU'V
 !,
f)!,
f)$
f)$
f)    c                   \        . RORR7      p\        RRR7      p\        W.^R7      p\        R. ROR\        P                  \        P                  \        P                  ./\        ^4      R7      p\        P                  ! W44       \        . RORR7      p\        RRR7      p\        W.^ R7      p\        . RORR7      p\        P                  ! W44       \        . RORR7      p\        R	RR7      p\        W.^R7      p\        R. RO^ \        P                  \        P                  \        P                  ./R^ .\        ^4      R
7      p\        P                  ! W44       R	# )   x)nameyfloat64)r@   dtyper   r   rC   N)r   r   r>   r      )	r   r   r   r#   nanr   r-   r.   assert_series_equal)r0   s1s2resexps   &    r9   test_concat_empty_series(TestEmptyConcat.test_concat_empty_series4   s   IC(I.bXA&)S266266266":;Q-
 	c'IC(I.bXA&Yi0
s( IC(Y/bXA&)Q 89!HQ-

 	c'r<   tzNUTCvaluesc           	        \        . R R7      P                  P                  V4      pV'       d   RM\        P                  p\        W$R7      p\        ^ \        \        P                  .\        V4      ,          R R7      P                  P                  V4      ^V/4      p\        W5.^R7      p\        P                  ! Wv4       R# )M8[ns]rD   Nr   )r   dttz_localizer#   rB   r   pdNaTlenr   r-   r.   )r0   rO   rQ   firstrC   secondr7   r8   s   &&&     r9   !test_concat_empty_series_timelike1TestEmptyConcat.test_concat_empty_series_timelikeQ   s    
 r*--99"=BJJ,6266(S[0ADDPPQST6
 a0
f/r<   zleft,right,expectedm8[ns]rS   c                n    \        \        VR 7      \        VR 7      .4      pVP                  V8X  g   Q hR# rD   N)r   r   rC   )r0   leftrightr7   r8   s   &&&& r9   test_concat_empty_series_dtypes/TestEmptyConcat.test_concat_empty_series_dtypesc   s/    $ d+V%-@AB||x'''r<   rC   c                    \         P                  ! V4      p\        \        VR 7      .4      pVP                  V8X  g   Q h\        \        VR 7      \        VR 7      .4      pVP                  V8X  g   Q hR# r_   )r#   rC   r   r   )r0   rC   r8   s   && r9   0test_concat_empty_series_dtypes_match_roundtrips@TestEmptyConcat.test_concat_empty_series_dtypes_match_roundtripsx   s`     e,-.||u$$$e,f5.ABC||u$$$r<   dtype2c                @  aa W8X  d   \         P                  ! R 4       R oR oVV3R lp\        P                  ! V4      p\        P                  ! V4      pV! W4      p\	        \        VR7      \        VR7      .4      P                  pVP                  V8X  g   Q hR# )z%same dtype is not applicable for testc                 .   V P                   VP                   0p\        V0 Rm,
          4      '       g%   V P                   R 8X  g   VP                   R 8X  d   R # \        VRR0,
          4      '       g%   V P                   R8X  g   VP                   R8X  d   R# R# )iur    N>   r    rj   rk   kindrX   rC   rg   typss   && r9   int_result_typeSTestEmptyConcat.test_concat_empty_series_dtypes_roundtrips.<locals>.int_result_type   so    JJ,Dto-..

c!V[[C%7c
*++

c!V[[C%7r<   c                     V P                   VP                   0p\        V0 Rm,
          4      '       g%   V P                   R 8X  g   VP                   R 8X  d   R # R# )fN>   rs   rj   rk   rl   rn   s   && r9   float_result_typeUTestEmptyConcat.test_concat_empty_series_dtypes_roundtrips.<locals>.float_result_type   sA    JJ,Dto-..

c!V[[C%7r<   c                 @   < S! W4      pVe   V# S! W4      pVe   V# R# )NO )rC   rg   r8   rt   rp   s   && r9   get_result_typeSTestEmptyConcat.test_concat_empty_series_dtypes_roundtrips.<locals>.get_result_type   s0    &u5F!$U3F!r<   rD   N)pytestskipr#   rC   r   r   rm   )r0   rC   rg   ry   r7   r8   rt   rp   s   &&&   @@r9   *test_concat_empty_series_dtypes_roundtrips:TestEmptyConcat.test_concat_empty_series_dtypes_roundtrips   s~     ?KK?@
			 &!"51e,f6.BCDJJ{{h&&&r<   c                    \        \        R R7      \        \        P                  R7      \        \        P                  R7      .4      P
                  \        P                  8X  g   Q hR# )rS   rD   N)r   r   r#   bool_int64rC   object_r0   s   &r9   &test_concat_empty_series_dtypes_triple6TestEmptyConcat.test_concat_empty_series_dtypes_triple   sF    h'bhh)?bhhAWXezz	
r<   c                    \        \        \        P                  ! . 4      R R7      \        RR7      .4      P                  R8X  g   Q hR# )categoryrD   rB   N)r   r   r#   arrayrC   r   s   &r9   2test_concat_empty_series_dtype_category_with_arrayBTestEmptyConcat.test_concat_empty_series_dtype_category_with_array   s?     J7i9PQe	
r<   c                *   \        \        R R7      P                  R4      \        R R7      P                  R4      .4      pVP                  R8X  g   Q h\        \        R R7      P                  R4      \        R R7      .4      p\        P
                  ! \        P                  4      pVP                  V8X  g   Q h\        \        R R7      P                  R4      \        RR7      .4      p\        P
                  ! R4      pVP                  V8X  g   Q hR# )rB   rD   SparsezSparse[float64]r+   N)r   r   r*   rC   rV   SparseDtyper#   rB   )r0   r8   r7   s   &  r9   &test_concat_empty_series_dtypes_sparse6TestEmptyConcat.test_concat_empty_series_dtypes_sparse   s    Y'..x8Y'..x8
 ||0000)$++H5vI7NO
 >>"**-||x''')$++H5vH7MN
 >>(+||x'''r<   c           	         \        R . ROR\        P                  R. RO/4      p\        VP                  R7      p\	        W.^ R7      pVP                  \        4      p\        P                  ! W44       R# )RowEmptyCol	NumberColr   r   N)r   r>   r>   rE   )	r   r#   rG   r   r   r*   r+   r-   r.   )r0   df_1df_2r8   r7   s   &    r9   !test_concat_empty_df_object_dtype1TestEmptyConcat.test_concat_empty_df_object_dtype   sU    %JYWX.1-;;v&
f/r<   c                p   \        \        R 4      R7      pVR,          P                  \        P                  4      VR&   VR,          P                  \        P
                  4      VR&   VR,          P                  \        P                  4      VR&   \        W.4      pVR,          P                  \        P                  8X  g   Q hVR,          P                  \        P
                  8X  g   Q hVR,          P                  \        P                  8X  g   Q h\        WP                  \        P                  4      .4      pVR,          P                  \        P                  8X  g   Q hVR,          P                  \        P                  8X  g   Q hVR,          P                  \        P                  8X  g   Q hR# )abcr   r   r    r!   N)
r   r'   r*   r#   r   int32rB   r   rC   r   )r0   r2   r8   s   &  r9   "test_concat_empty_dataframe_dtypes2TestEmptyConcat.test_concat_empty_dataframe_dtypes   s,   tE{+S'..*3S'..*3S'..,3!c{  BHH,,,c{  BHH,,,c{  BJJ...YYrzz234c{  BJJ...c{  BJJ...c{  BJJ...r<   c                   \        4       p\        R ^^./^ ^.RR7      p\        R . /\        ^ 4      RR7      p\        W!.^RR7      p\        P                  ! WC4       \        W!.^RR7      p\        P                  ! WB4       R# )r   r   )r   rC   inner)r   joinouterN)r   r   r   r-   r.   )r0   df_emptydf_adf_expectedr8   s   &    r9   test_concat_inner_join_empty,TestEmptyConcat.test_concat_inner_join_empty   sw    ;#1vq!fGDb	AgN(qw?
f2(qw?
f+r<   c                    \        ^R.^R..RR.R7      p\        ^R.^R..RR.R7      p\        W.4      pVP                  p\        P                  ! VP                  V4       R# )r>   Nr   r    )datar   )r   r   dtypesr-   rH   )r0   df1df2r8   r7   s   &    r9   test_empty_dtype_coerce'TestEmptyConcat.test_empty_dtype_coerce   sg     q$i!T3c3ZHq$i!T3c3ZH
#::
v}}h7r<   c                6   \        R R.R7      p\        RR.R7      p\        WV.4      p\        . ROR7      p\        P                  ! W44       \        R R.R7      p\        R.R7      p\        WV.4      p\        R R.R7      p\        P                  ! W44       R# )r   r    r   r!   Nr   r    r!   )r   r   r-   r.   )r0   r   r   r8   r7   df3df4s   &      r9   test_concat_empty_dataframe+TestEmptyConcat.test_concat_empty_dataframe  s    c
+c
+3(_5
f/c
+&
#c3Z0
f/r<   c                4   \        R . ROR. RO/4      p\        R . RO/4      p\        VR,          VR,          .4      pVR ,          P                  \        P                  8X  g   Q hV'       g)   VR,          P                  \        P
                  8X  g   Q hR# R# )r   r    :Nr   NNrE   r   )r   r   rC   r#   r   r   )r0   r1   r   r   r8   s   &&   r9   ,test_concat_empty_dataframe_different_dtypes<TestEmptyConcat.test_concat_empty_dataframe_different_dtypes  sz    io>?i()R#b'*+c{  BHH,,,6Hvc{  BJJ.SSe.r<   c                F   \        R\        P                  ! . \        P                  ! 4       R7      /4      p\        R\        P                  ! . RO\        P                  ! 4       R7      /4      pVP	                  4       p\        W.4      p\        P                  ! WC4       R# )z<48510 `concat` to an empty EA should maintain type EA dtype.r   rD   NrE   )r   rV   r   
Int64Dtyper(   r   r-   r.   )r0   r   df_newr7   r8   s   &    r9   test_concat_to_empty_ea'TestEmptyConcat.test_concat_to_empty_ea  sh    c288Bbmmo#FGHC)2==?!KLM;;=*+
f/r<   rx   rE   )r   r   r   )r   r+   r+   )rB   int8uint8boolr]   rS   )rB   r   r   r]   rS   )__name__
__module____qualname____firstlineno__r:   rM   r{   markparametrizer[   r#   r   r   r   float32r   rb   re   r}   r   r   r   r   r   r   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r9   r	   r	      s    "*H(: [[TD%=1[[XI70 8 20  [[ XXrxx,XXrzz2::.rxx,rxx,rxx,rxx,0,	
 (! (
 [[I%% [[W&VW[[8&'	 X
&'P

(*0/ 
,80T0 0r<   r	   )numpyr#   r{   pandasrV   r   r   r   r   r   pandas._testing_testingr-   r	   rx   r<   r9   <module>r      s)        V0 V0r<   