+
    xȇi;                     ^    ^ RI t^ RIt^ RIHt ^ RIt^ RIHtHtH	t	 ^ RI
Ht  ! R R4      tR# )    N)union_categoricals)CategoricalCategoricalIndexSeriesc                     a  ] tR t^t o ]P
                  P                  R]! R4      ]! R4      ]! R4      3. R(O. R)O. R*O3. R+O. R,O. R-O3RR]P                  R.R]P                  R.RR]P                  RR]P                  R.3]
P                  ! RR	4      ]
P                  ! R
R4      ]
P                  ! RR4      3]
P                  ! RR	RR7      ]
P                  ! R
RRR7      ]
P                  ! RRRR7      3]
P                  ! RR	4      ]
P                  ! R
R4      ]
P                  ! RR4      3.4      ]P
                  P                  R]]].4      R 4       4       tR tR tR tR tR t]P
                  P                  R. R..4      R 4       tR tR tR tR 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'# ).TestUnionCategoricalsza, b, combinedabcabdabcabdbacz
2014-01-01z
2014-01-05z
2014-01-06z
2014-01-07z
US/Central)tzboxc                    \        V! \        V4      4      V! \        V4      4      .4      p\        V4      p\        P                  ! WV4       R # )N)r   r   tmassert_categorical_equal)selfr   r   combinedr   resultexpecteds   &&&&&  |/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/reshape/test_union_categoricals.pytest_union_categorical,TestUnionCategoricals.test_union_categorical   s=    > $SQ%8#k!n:M$NOx(
##F5    c                    \        . RO4      p\        . RO4      p\        W.4      p\        . RO. ROR7      p\        P                  ! W44       R# )x
categoriesNr   yzr   r   r   r   r!   r"   r   r   r   r   r   r   r   r   ss2r   r   s   &    r   )test_union_categorical_ordered_appearance?TestUnionCategoricals.test_union_categorical_ordered_appearance3   sB    ()#QG,*7U
 	##F5r   c                    \        . RORR7      p\        . RORR7      p\        W.4      p\        . RORR7      p\        P                  ! W44       R# )r   TorderedNr   333333?   )r   r/   r0   r   r/   r0   r%   r&   s   &    r   #test_union_categorical_ordered_true9TestUnionCategoricals.test_union_categorical_ordered_true=   sA    T2d3#QG,5tD
##F5r   c                    \        . RO4      p\        . RO4      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W.4       RRR4       R#   + '       g   i     R# ; i)r   z$dtype of categories must be the samematchNr.   r0         )r   pytestraises	TypeErrorr   )r   r'   r(   msgs   &   r   "test_union_categorical_match_types8TestUnionCategoricals.test_union_categorical_match_typesD   sE    $#4]]9C00w' 1000s   AA)	c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        . 4       RRR4       R#   + '       g   i     R# ; i)zNo Categoricals to unionr4   N)r9   r:   
ValueErrorr   )r   r<   s   & r   test_union_categorical_empty2TestUnionCategoricals.test_union_categorical_emptyL   s/    (]]:S11r" 2111s	   =A	c                   \        \        ^^\        P                  .4      \        ^^\        P                  .4      .4      p\        ^^\        P                  ^^\        P                  .4      p\        P
                  ! W4       \        \        RR.4      \        RR\        P                  .4      .4      p\        RRRR\        P                  .4      p\        P
                  ! W4       \        P                  ! R4      \        P                  ! R4      \        P                  .p\        P                  \        P                  ! R4      \        P                  ! R4      .p\        \        V4      \        V4      .4      p\        W4,           \        P                  ! R4      \        P                  ! R4      \        P                  ! R4      .R7      p\        P
                  ! W4       \        \        \        P                  ! \        P                  \        P                  .\        R7      4      \        R.\        P                  ! R.\        R7      R7      .4      p\        \        P                  \        P                  R.4      p\        P
                  ! W4       \        \        \        P                  \        P                  .4      \        \        P                  \        P                  .4      .4      p\        \        P                  \        P                  \        P                  \        P                  .4      p\        P
                  ! W4       R	# )
   ABz
2011-01-01z
2011-03-01z
2011-02-01r   dtypeXN)r   r   npnanr   r   pd	TimestampNaTarrayobjectIndex)r   resexpval1val2s   &    r   test_union_categoricals_nan1TestUnionCategoricals.test_union_categoricals_nanQ   s6    !Q(+q!RVVn*EF
 1aArvv67
##C- #s$k3RVV2D&EF
 3S#rvv67
##C-\*BLL,FO\2BLL4NO +d"3[5F!GHK\*\*\*
 	##C- !BHHbffbff%5VDESEbhhuF.KL
 2662663/0
##C- "&&"&&)*K8H,IJ
 266266266266:;
##C-r   val1c                   V'       d8   VR .8X  d0   VP                  \        P                  P                  RR7      4       \	        \        . 4      \        V4      .4      p\        V4      p\        P                  ! WE4       R# )rY   z0TDOD(infer_string) object and strings dont match)reasonN)applymarkerr9   markxfailr   r   r   r   )r   rX   requestusing_infer_stringrR   rS   s   &&&&  r   test_union_categoricals_empty3TestUnionCategoricals.test_union_categoricals_empty}   si     ##,!!M " 
 !+b/;s3C!DE#
##C-r   c           
         \        . RO. ROR7      p\        ^^^\        P                  .. ROR7      p\        W.4      p\        ^^^^^^^\        P                  .. ROR7      p\        P
                  ! W44       R# )rD   r   N)rD   r0   r7   r8   r   rJ   rK   r   r   r   r   c1c2rR   rS   s   &    r   $test_union_categorical_same_category:TestUnionCategoricals.test_union_categorical_same_category   sb    ,?!Q266*|D "*1aAq!Q7LQ
##C-r   c                    \        . RO. ROR7      p\        . RO. ROR7      p\        W.4      p\        . RO. ROR7      p\        P                  ! W44       R# )r"   r   N)r"   r"   r"   r    )r   r   r   )r"   r"   r"   r   r   r   r%   re   s   &    r   (test_union_categorical_same_category_str>TestUnionCategoricals.test_union_categorical_same_category_str   sA    _E_E "*8_U
##C-r   c                    \        . RO. ROR7      p\        . RO. ROR7      p\        W.4      p\        . RO. ROR7      p\        P                  ! W44       R# )r   r   Nr#   r   r   r   )r   r   r   r   r   r   r%   r   rf   rg   r   r   s   &    r   6test_union_categorical_same_categories_different_orderLTestUnionCategoricals.test_union_categorical_same_categories_different_order   sE    _E_E#RH-*
 	##F5r   c                
   \        . R	ORR7      p\        . R	ORR7      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W.4       RRR4       \	        W.4      p\        . R
ORR7      p\
        P                  ! WE4       \        ^^^\        P                  .RR7      p\        ^^.. R	ORR7      p\	        W.4      p\        ^^^\        P                  ^^.RR7      p\
        P                  ! WE4       \        . R	ORR7      p\        . R	O. RORR7      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W.4       RRR4       R#   + '       g   i     EL; i  + '       g   i     R# ; i)rD   Tr,   F$Categorical.ordered must be the samer4   Nr   r-   >to union ordered Categoricals, all categories must be the samerD   r0   r7   rD   r0   r7   rD   r0   r7   r7   r0   rD   )	r   r9   r:   r;   r   r   r   rJ   rK   )r   rf   rg   r<   rR   rS   s   &     r   test_union_categoricals_ordered5TestUnionCategoricals.test_union_categoricals_ordered   s$   D1E24]]9C00x( 1 !"*,d;
##C-!Q266*D9!QItD "*1aBFFAq14@
##C-D1y$GN]]9C00x( 10% 100$ 100s   EE1E.	1F	c                   \        . RORR7      p\        . RORR7      p\        W.RR7      p\        . RO4      p\        P                  ! W44       Rp\        P
                  ! \        VR7      ;_uu_ 4        \        W.RR7       RRR4       \        W.RR7      p\        . RO4      p\        P                  ! W44       \        W.RR7      p\        . RO. RORR7      p\        P                  ! W44       \        ^^^\        P                  .RR7      p\        ^^.. RORR7      p\        W.RR7      p\        ^^^\        P                  ^^.4      p\        P                  ! W44       \        . RORR7      p\        . RO. RORR7      p\        W.RR7      p\        . RO4      p\        P                  ! W44       \        W!.RRR	7      p\        . RO. ROR
7      p\        P                  ! W44       \        . RORR7      p\        . RORR7      p\        W.RR7      p\        . RO4      p\        P                  ! Wg4       Rp\        P
                  ! \        VR7      ;_uu_ 4        \        W.RR7       RRR4       \        P
                  ! \        VR7      ;_uu_ 4        \        W.4       RRR4       R#   + '       g   i     EL;; i  + '       g   i     L_; i  + '       g   i     R# ; i)rD   Tr,   F)ignore_orderrs   r4   Nrt   )r|   sort_categoriesr   ru   rv   rw   rx   )r8         )rD   r0   r7   r8   r~   r   )	r   r   r   r   r9   r:   r;   rJ   rK   )r   rf   rg   rR   rS   r<   r   r   s   &       r   $test_union_categoricals_ignore_order:TestUnionCategoricals.test_union_categoricals_ignore_order   s8   D1E2 "=,-
##C-4]]9C00xe< 1 !"=,-
##C- ">,DQ
##C-!Q266*D9!QItD "=1aBFFAq12
##C-D1y$G "=,-
##C- "dS,C
##C-D1D1#RH4@12
##F5N]]9C00xe< 1 ]]9C00x( 10O 100H 10 100s$   6J7%K K7K	K	K/	c                6   \        . RO4      p\        . RO4      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       \        RR.. ROR7      p\        RR.. ROR7      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       \        RR.. ROR7      p\        RR.. ROR7      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       \        RR.. ROR7      p\        RR.. ROR7      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       \        R \        P
                  .4      p\        \        P
                  R.4      p\        W.RR7      p\        R \        P
                  \        P
                  R.RR .R7      p\        P                  ! W44       \        \        P
                  .4      p\        \        P
                  .4      p\        W.RR7      p\        \        P
                  \        P
                  .4      p\        P                  ! W44       \        . 4      p\        . 4      p\        W.RR7      p\        . 4      p\        P                  ! W44       \        RR.. RORR7      p\        RR.. RORR7      pRp\        P                  ! \        VR	7      ;_uu_ 4        \        W.RR7       R
R
R
4       R
#   + '       g   i     R
# ; i)r   r   r   r   Tr}   r   rt   z9Cannot use sort_categories=True with ordered Categoricalsr4   Nr    r#   r$   )r   r   r   r   r!   r"   rn   r   r   r   r   )r   r   r   )	r   r   r   r   rJ   rK   r9   r:   r;   r   rf   rg   r   r   r<   s   &     r   test_union_categoricals_sort2TestUnionCategoricals.test_union_categoricals_sort   sc   ))#RHdC*7U
 	##F5 #s@#s@#RHdC3P
##F5#s@#s@#RHdC3P
##F5 #s@#s@#RHdC3P
##F5#rvv'"&&#'#RHdCRVVRVVS9sCjQ
##F5"&&""&&"#RHdC/0
##F5__#RHdCr?
##F5#sN#sNI]]9C00x> 1000s   .LL	c                    \        . RO4      p\        . RO4      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       R# )r   Fr   r   Nr    r#   r$   r%   ro   s   &    r   "test_union_categoricals_sort_false8TestUnionCategoricals.test_union_categoricals_sort_false'  sD    ))#RHeD*7U
 	##F5r   c                    \        R R.. ROR7      p\        RR.. ROR7      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       R# )	r   r   r   r   Fr   Nrn   r   r%   ro   s   &    r   +test_union_categoricals_sort_false_fastpathATestUnionCategoricals.test_union_categoricals_sort_false_fastpath1  K    #s@#s@#RHeD3P
##F5r   c                    \        R R.. ROR7      p\        RR.. ROR7      p\        W.RR7      p\        . RO. ROR7      p\        P                  ! W44       R# )	r   r   r   r   Fr   Nr#   r   r%   ro   s   &    r   -test_union_categoricals_sort_false_skipresortCTestUnionCategoricals.test_union_categoricals_sort_false_skipresort9  r   r   c                   \        R \        P                  .4      p\        \        P                  R.4      p\        W.RR7      p\        R \        P                  \        P                  R.R R.R7      p\        P
                  ! W44       R# )r   r   Fr   r   Nrd   ro   s   &    r   *test_union_categoricals_sort_false_one_nan@TestUnionCategoricals.test_union_categoricals_sort_false_one_nanA  sc    #rvv'"&&#'#RHeDRVVRVVS9sCjQ
##F5r   c                   \        \        P                  .4      p\        \        P                  .4      p\        W.R R7      p\        \        P                  \        P                  .4      p\        P
                  ! W44       R# Fr   Nrd   ro   s   &    r   +test_union_categoricals_sort_false_only_nanATestUnionCategoricals.test_union_categoricals_sort_false_only_nanH  sU    "&&""&&"#RHeD/0
##F5r   c                    \        . 4      p\        . 4      p\        W.R R7      p\        . 4      p\        P                  ! W44       R# r   r%   ro   s   &    r   (test_union_categoricals_sort_false_empty>TestUnionCategoricals.test_union_categoricals_sort_false_emptyO  s9    __#RHeDr?
##F5r   c                    \        R R.. RORR7      p\        RR.. RORR7      p\        W.RR7      p\        . R	O. RORR7      p\        P                  ! W44       R# )
r   r   r   Trt   Fr   Nrn   )r   r   r   r   r%   ro   s   &    r   /test_union_categoricals_sort_false_ordered_trueETestUnionCategoricals.test_union_categoricals_sort_false_ordered_trueV  sU    #sN#sN#RHeD _d
 	##F5r   c                   \        R R.4      p\        RR.RR7      p\        W.4      p\        . RO4      p\        P                  ! W44       \        V4      p\        W.4      p\        P                  ! W44       \        V4      p\        W.4      p\        P                  ! W44       Rp\        P                  ! \        VR7      ;_uu_ 4        \        V. R	O.4       RRR4       R#   + '       g   i     R# ; i)
r   r   r   categoryrG   z-all components to combine must be Categoricalr4   Nr   r#   )	r   r   r   r   r   r   r9   r:   r;   r   s   &     r   test_union_categorical_unwrap3TestUnionCategoricals.test_union_categorical_unwrap_  s    #s$S#Jj1#RH-34
##F5b!#RH-
##F5BZ#RH-
##F5=]]9C00O45 1000s   C&&C7	 N)r   rD   r0   r6   )r   rD   r0   r0   r7   r8   r.   )r0   333333@r8   )r   r/   r0   r0   r   r8   )'__name__
__module____qualname____firstlineno__r9   r]   parametrizelistrJ   rK   rL   
date_rangeperiod_ranger   r   r   r   r)   r1   r=   rA   rV   ra   rh   rk   rp   ry   r   r   r   r   r   r   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s    [[%[$u+tH~6	#56+'=>c2663'bffc"c2663RVVS9 lL9lL9lL9 lL\JlL\JlL\J l;l;l;'	
8 [[U[2BF$KL6 M9:666(#
*.X [[UR#K0
. 1
...6)42)h4?l66666666 6r   r   )numpyrJ   r9   pandas.core.dtypes.concatr   pandasrL   r   r   r   pandas._testing_testingr   r   r   r   r   <module>r      s,      8  
 b6 b6r   