+
    yȇik                     b    ^ RI t^ RIHtHtHtHtHtHtH	t	H
t
Ht  ! R R4      t ! R R4      tR# )    N)	CategoricalCategoricalDtypeCategoricalIndexIndexSeries
date_rangeoption_contextperiod_rangetimedelta_rangec                   &   a  ] tR t^t o R tRtV tR# )TestCategoricalReprWithFactorc                    \        . R
ORR7      pV'       d   RMRpRRV R2.pRP                  V4      p\        V4      pWT8X  g   Q hR	# )aTorderedstrobjectz(['a', 'b', 'b', 'a', 'a', 'c', 'c', 'c']zCategories (3, z): ['a' < 'b' < 'c']
N)r   br   r   r   cr   r   )r   joinrepr)selfusing_infer_stringfactordtypeexpectedactuals   &&    y/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/arrays/categorical/test_repr.py
test_print(TestCategoricalReprWithFactor.test_print   sT    EtT+6eW$89
 99X&f!!!     N)__name__
__module____qualname____firstlineno__r    __static_attributes____classdictcell____classdict__s   @r   r   r      s     	" 	"r"   r   c                      a  ] tR t^t o 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R tR tR tR tR tR tR tR tRtV tR# )TestCategoricalReprc                    \         P                  ! . RO^d,          4      p\        \        . RO\        R7      R7      p\
        P                  ! WR7      p. ROpRP                  V4      p\        V4      pWT8X  g   Q hR# )r   r   
categoriesr   N)r         r   r2   r3   r   r   r   )z7['a', 'b', 'c', 'a', 'b', ..., 'b', 'c', 'a', 'b', 'c']zLength: 600z'Categories (3, object): ['a', 'b', 'c'])	nparrayr   r   r   r   
from_codesr   r   )r   codesr   r   r   r   s   &     r   test_big_print"TestCategoricalRepr.test_big_print   sc    +c12 E/,PQ'';

 99X&f!!!r"   c                "   \        . \        . RO\        R7      4      pRp\        V4      pW28X  g   Q hW#8X  g   Q h\        . \        . RO\        R7      RR7      pRp\        V4      pW#8X  g   Q h\        . . 4      pRpV\        V4      8X  g   Q hR# )	r   r/   z+[], Categories (3, object): ['a', 'b', 'c']Tr   z-[], Categories (3, object): ['a' < 'b' < 'c']z[], Categories (0, object): []Nr4   )r   r   r   r   )r   r   r   r   s   &   r   test_empty_print$TestCategoricalRepr.test_empty_print-   s    Rf!EF@f!!!!!!Rf!EtTBf!!!R$34<'''r"   c                    \        \        . RO4      4      pRp\        RR4      ;_uu_ 4        V\        V4      8X  g   Q h RRR4       R#   + '       g   i     R# ; i)r2   zO0    1
1    2
2    3
3    4
dtype: category
Categories (4, int64): [1, 2, 3, 4]zdisplay.widthN)r2   r3         )r   r   r	   r   )r   r   exps   &  r   test_print_none_width)TestCategoricalRepr.test_print_none_width=   sJ    ;|,-C 	
 OT22$q'>!> 3222s   AA	c                   \        . RO^,          4      pRpV'       d   VP                  RR4      p\        V4      V8X  g   Q h\        . R	O^,          4      pRpV'       d   VP                  RR4      p\        V4      V8X  g   Q h\        RR4      ;_uu_ 4        \        . R	O^,          4      pRpRRR4       V'       d   VP                  RR4      p\        V4      V8X  g   Q hR#   + '       g   i     L>; i)
aaaaaz['aaaaa', 'bb', 'cccc', 'aaaaa', 'bb', ..., 'bb', 'cccc', 'aaaaa', 'bb', 'cccc']
Length: 60
Categories (3, object): ['aaaaa', 'bb', 'cccc']r   r   u,  ['ああああ', 'いいいいい', 'ううううううう', 'ああああ', 'いいいいい', ..., 'いいいいい', 'ううううううう', 'ああああ', 'いいいいい', 'ううううううう']
Length: 60
Categories (3, object): ['ああああ', 'いいいいい', 'ううううううう']z display.unicode.east_asian_widthTN)rE   bbcccc)u   ああああu   いいいいいu   ううううううう)r   replacer   r	   )r   r   r   r   s   &&  r   test_unicode_print&TestCategoricalRepr.test_unicode_printH   s    /"453
 ''%8HAw("""TWYYZX
 ''%8HAw(""" >EEX[]]^AXH F ''%8HAw(""" FEs   C&&C6	c                h   \        . RO4      pRp\        V4      V8X  g   Q h\        . R	O. ROR7      pRp\        V4      V8X  g   Q h\        . R
O^
,          4      pRp\        V4      V8X  g   Q h\        \        P                  ! ^\        P                  R7      4      pRp\        V4      V8X  g   Q hR# )r2   z*[1, 2, 3]
Categories (3, int64): [1, 2, 3]r0   z3[1, 2, 3, 1, 2, 3]
Categories (3, int64): [1, 2, 3]zU[1, 2, 3, 4, 5, ..., 1, 2, 3, 4, 5]
Length: 50
Categories (5, int64): [1, 2, 3, 4, 5]r/   zm[0, 1, 2, 3, 4, ..., 15, 16, 17, 18, 19]
Length: 20
Categories (20, int64): [0, 1, 2, 3, ..., 16, 17, 18, 19]Nr2   r3   r?   r2   r3   r?   r2   r3   r?   r2   r3   r?   r@      r   r   r5   arangeint64r   r   rA   s   &  r   test_categorical_repr)TestCategoricalRepr.test_categorical_reprl   s    	"$ Aw#~~*yA$ Aw#~~",-* Aw#~~		"BHH56= Aw#~~r"   c                v   \        . R
ORR7      pRp\        V4      V8X  g   Q h\        . RO. R
ORR7      pRp\        V4      V8X  g   Q h\        . RO^
,          RR7      pRp\        V4      V8X  g   Q h\        \        P                  ! ^\        P                  R7      RR7      pRp\        V4      V8X  g   Q hR	# )r2   Tr   z,[1, 2, 3]
Categories (3, int64): [1 < 2 < 3]r1   r   z5[1, 2, 3, 1, 2, 3]
Categories (3, int64): [1 < 2 < 3]zY[1, 2, 3, 4, 5, ..., 1, 2, 3, 4, 5]
Length: 50
Categories (5, int64): [1 < 2 < 3 < 4 < 5]r/   zq[0, 1, 2, 3, 4, ..., 15, 16, 17, 18, 19]
Length: 20
Categories (20, int64): [0 < 1 < 2 < 3 ... 16 < 17 < 18 < 19]NrL   rM   rN   rP   rS   s   &  r   test_categorical_repr_ordered1TestCategoricalRepr.test_categorical_repr_ordered   s    	40& Aw#~~*y$O& Aw#~~",d;. Aw#~~		"BHH5tDA Aw#~~r"   c                   \        R R^RR7      p\        V4      pRp\        V4      V8X  g   Q h\        VP                  V4      VR7      pRp\        V4      V8X  g   Q h\        R R^RRR7      p\        V4      pR	p\        V4      V8X  g   Q h\        VP                  V4      VR7      pR
p\        V4      V8X  g   Q hR# )2011-01-01 09:00hnsfreqperiodsunita  [2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00]
Categories (5, datetime64[ns]): [2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00,
                                 2011-01-01 12:00:00, 2011-01-01 13:00:00]r0   a}  [2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00, 2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00]
Categories (5, datetime64[ns]): [2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00,
                                 2011-01-01 12:00:00, 2011-01-01 13:00:00]
US/Easternr_   r`   tzra   a  [2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]
Categories (5, datetime64[ns, US/Eastern]): [2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,
                                             2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,
                                             2011-01-01 13:00:00-05:00]a  [2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00, 2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]
Categories (5, datetime64[ns, US/Eastern]): [2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00,
                                             2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00,
                                             2011-01-01 13:00:00-05:00]Nr   r   r   appendr   idxr   rA   s   &   r   test_categorical_repr_datetime2TestCategoricalRepr.test_categorical_repr_datetime   s    +#qtL 	 Aw#~~

3C8# 	 Aw#~~S!4
 ) 	 Aw#~~

3C8
) 	 Aw#~~r"   c                   \        R R^RR7      p\        VRR7      pRp\        V4      V8X  g   Q h\        VP                  V4      VRR7      pRp\        V4      V8X  g   Q h\        R R^R	RR
7      p\        VRR7      pRp\        V4      V8X  g   Q h\        VP                  V4      VRR7      pRp\        V4      V8X  g   Q hR# )r[   r\   r]   r^   Tr   a  [2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00]
Categories (5, datetime64[ns]): [2011-01-01 09:00:00 < 2011-01-01 10:00:00 < 2011-01-01 11:00:00 <
                                 2011-01-01 12:00:00 < 2011-01-01 13:00:00]rW   a  [2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00, 2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00]
Categories (5, datetime64[ns]): [2011-01-01 09:00:00 < 2011-01-01 10:00:00 < 2011-01-01 11:00:00 <
                                 2011-01-01 12:00:00 < 2011-01-01 13:00:00]rb   rc   a  [2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]
Categories (5, datetime64[ns, US/Eastern]): [2011-01-01 09:00:00-05:00 < 2011-01-01 10:00:00-05:00 <
                                             2011-01-01 11:00:00-05:00 < 2011-01-01 12:00:00-05:00 <
                                             2011-01-01 13:00:00-05:00]a   [2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00, 2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00]
Categories (5, datetime64[ns, US/Eastern]): [2011-01-01 09:00:00-05:00 < 2011-01-01 10:00:00-05:00 <
                                             2011-01-01 11:00:00-05:00 < 2011-01-01 12:00:00-05:00 <
                                             2011-01-01 13:00:00-05:00]Nre   rg   s   &   r   &test_categorical_repr_datetime_ordered:TestCategoricalRepr.test_categorical_repr_datetime_ordered   s    +#qtLT*O Aw#~~

3CFO Aw#~~S!4
 T*K
 Aw#~~

3CFK
 Aw#~~r"   c                    \        ^^\        P                  .4      pRp\        V4      V8X  g   Q h\	        ^^\        P                  .RR7      P                  R4      pRp\        V4      V8X  g   Q hR# )r2   z)[1, 2, NaN]
Categories (2, int64): [1, 2]r   r/   categoryzH0      1
1      2
2    NaN
dtype: category
Categories (2, int64): [1, 2]N)r   r5   nanr   r   astype)r   r   c_expss_exps   &    r   "test_categorical_repr_int_with_nan6TestCategoricalRepr.test_categorical_repr_int_with_nan  si    Arvv'@Aw%Aq"&&>299*E! Aw%r"   c                z   \        R R^R7      p\        V4      pRp\        V4      V8X  g   Q h\        VP                  V4      VR7      pRp\        V4      V8X  g   Q h\        RR^R7      p\        V4      pRp\        V4      V8X  g   Q h\        VP                  V4      VR7      pR	p\        V4      V8X  g   Q hR
# )r[   r\   r_   r`   z[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00]
Categories (5, period[h]): [2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00,
                            2011-01-01 13:00]r0   aF  [2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00, 2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00]
Categories (5, period[h]): [2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00,
                            2011-01-01 13:00]2011-01Mzv[2011-01, 2011-02, 2011-03, 2011-04, 2011-05]
Categories (5, period[M]): [2011-01, 2011-02, 2011-03, 2011-04, 2011-05]z[2011-01, 2011-02, 2011-03, 2011-04, 2011-05, 2011-01, 2011-02, 2011-03, 2011-04, 2011-05]
Categories (5, period[M]): [2011-01, 2011-02, 2011-03, 2011-04, 2011-05]Nr
   r   r   rf   rg   s   &   r   test_categorical_repr_period0TestCategoricalRepr.test_categorical_repr_period  s    -CC1 Aw#~~

3C81 Aw#~~93:L Aw#~~

3C8L Aw#~~r"   c                   \        R R^R7      p\        VRR7      pRp\        V4      V8X  g   Q h\        VP                  V4      VRR7      pRp\        V4      V8X  g   Q h\        RR	^R7      p\        VRR7      pR
p\        V4      V8X  g   Q h\        VP                  V4      VRR7      pRp\        V4      V8X  g   Q hR# )r[   r\   rx   Tr   z[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00]
Categories (5, period[h]): [2011-01-01 09:00 < 2011-01-01 10:00 < 2011-01-01 11:00 < 2011-01-01 12:00 <
                            2011-01-01 13:00]rW   aJ  [2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00, 2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00]
Categories (5, period[h]): [2011-01-01 09:00 < 2011-01-01 10:00 < 2011-01-01 11:00 < 2011-01-01 12:00 <
                            2011-01-01 13:00]ry   rz   zz[2011-01, 2011-02, 2011-03, 2011-04, 2011-05]
Categories (5, period[M]): [2011-01 < 2011-02 < 2011-03 < 2011-04 < 2011-05]z[2011-01, 2011-02, 2011-03, 2011-04, 2011-05, 2011-01, 2011-02, 2011-03, 2011-04, 2011-05]
Categories (5, period[M]): [2011-01 < 2011-02 < 2011-03 < 2011-04 < 2011-05]Nr{   rg   s   &   r   $test_categorical_repr_period_ordered8TestCategoricalRepr.test_categorical_repr_period_ordered-  s    -CCT*1 Aw#~~

3CF1 Aw#~~93:T*P Aw#~~

3CFP Aw#~~r"   c                v   \        R ^R7      p\        V4      pRp\        V4      V8X  g   Q h\        VP                  V4      VR7      pRp\        V4      V8X  g   Q h\        R^R7      p\        V4      pRp\        V4      V8X  g   Q h\        VP                  V4      VR7      pRp\        V4      V8X  g   Q hR# )	1 daysr`   zr[1 days, 2 days, 3 days, 4 days, 5 days]
Categories (5, timedelta64[us]): [1 days, 2 days, 3 days, 4 days, 5 days]r0   z[1 days, 2 days, 3 days, 4 days, 5 days, 1 days, 2 days, 3 days, 4 days, 5 days]
Categories (5, timedelta64[us]): [1 days, 2 days, 3 days, 4 days, 5 days]1 hoursa  [0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00, 3 days 01:00:00, 4 days 01:00:00, ..., 15 days 01:00:00, 16 days 01:00:00, 17 days 01:00:00, 18 days 01:00:00, 19 days 01:00:00]
Length: 20
Categories (20, timedelta64[us]): [0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00,
                                   3 days 01:00:00, ..., 16 days 01:00:00, 17 days 01:00:00,
                                   18 days 01:00:00, 19 days 01:00:00]a  [0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00, 3 days 01:00:00, 4 days 01:00:00, ..., 15 days 01:00:00, 16 days 01:00:00, 17 days 01:00:00, 18 days 01:00:00, 19 days 01:00:00]
Length: 40
Categories (20, timedelta64[us]): [0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00,
                                   3 days 01:00:00, ..., 16 days 01:00:00, 17 days 01:00:00,
                                   18 days 01:00:00, 19 days 01:00:00]Nr   r   r   rf   rg   s   &   r   test_categorical_repr_timedelta3TestCategoricalRepr.test_categorical_repr_timedeltaJ  s    h2M Aw#~~

3C8M Aw#~~i4J Aw#~~

3C8J Aw#~~r"   c                   \        R ^R7      p\        VRR7      pRp\        V4      V8X  g   Q h\        VP                  V4      VRR7      pRp\        V4      V8X  g   Q h\        R^R7      p\        VRR7      pRp\        V4      V8X  g   Q h\        VP                  V4      VRR7      pR	p\        V4      V8X  g   Q hR
# )r   r   Tr   zv[1 days, 2 days, 3 days, 4 days, 5 days]
Categories (5, timedelta64[us]): [1 days < 2 days < 3 days < 4 days < 5 days]rW   z[1 days, 2 days, 3 days, 4 days, 5 days, 1 days, 2 days, 3 days, 4 days, 5 days]
Categories (5, timedelta64[us]): [1 days < 2 days < 3 days < 4 days < 5 days]r   a  [0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00, 3 days 01:00:00, 4 days 01:00:00, ..., 15 days 01:00:00, 16 days 01:00:00, 17 days 01:00:00, 18 days 01:00:00, 19 days 01:00:00]
Length: 20
Categories (20, timedelta64[us]): [0 days 01:00:00 < 1 days 01:00:00 < 2 days 01:00:00 <
                                   3 days 01:00:00 ... 16 days 01:00:00 < 17 days 01:00:00 <
                                   18 days 01:00:00 < 19 days 01:00:00]a  [0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00, 3 days 01:00:00, 4 days 01:00:00, ..., 15 days 01:00:00, 16 days 01:00:00, 17 days 01:00:00, 18 days 01:00:00, 19 days 01:00:00]
Length: 40
Categories (20, timedelta64[us]): [0 days 01:00:00 < 1 days 01:00:00 < 2 days 01:00:00 <
                                   3 days 01:00:00 ... 16 days 01:00:00 < 17 days 01:00:00 <
                                   18 days 01:00:00 < 19 days 01:00:00]Nr   rg   s   &   r   'test_categorical_repr_timedelta_ordered;TestCategoricalRepr.test_categorical_repr_timedelta_orderedk  s    h2T*Q Aw#~~

3CFQ Aw#~~i4T*K Aw#~~

3CFK Aw#~~r"   c           	         \        \        . RO4      4      pRp\        V4      V8X  g   Q h\        \        \        P                  ! ^
\        P
                  R7      4      4      pRp\        V4      V8X  g   Q hR# )r2   zRCategoricalIndex([1, 2, 3], categories=[1, 2, 3], ordered=False, dtype='category')r/   z{CategoricalIndex([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], categories=[0, 1, 2, 3, ..., 6, 7, 8, 9], ordered=False, dtype='category')NrL   r   r   r   r5   rQ   rR   )r   rh   rA   is   &   r   test_categorical_index_repr/TestCategoricalRepr.test_categorical_index_repr  s^    {956fCyC[2RXX)FGH PAw#~~r"   c           	         \        \        . RORR7      4      pRp\        V4      V8X  g   Q h\        \        \        P                  ! ^
\        P
                  R7      RR7      4      pRp\        V4      V8X  g   Q hR# )r2   Tr   zQCategoricalIndex([1, 2, 3], categories=[1, 2, 3], ordered=True, dtype='category')r/   zzCategoricalIndex([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], categories=[0, 1, 2, 3, ..., 6, 7, 8, 9], ordered=True, dtype='category')NrL   r   )r   r   rA   s   &  r   #test_categorical_index_repr_ordered7TestCategoricalRepr.test_categorical_index_repr_ordered  sa    [DABeAw#~~[2RXX)FPTUV OAw#~~r"   c                    \        R R^R7      p\        \        V4      4      pRp\        V4      V8X  g   Q h\        R R^RR7      p\        \        V4      4      pRp\        V4      V8X  g   Q hR# )r[   r\   rx   aQ  CategoricalIndex(['2011-01-01 09:00:00', '2011-01-01 10:00:00',
                  '2011-01-01 11:00:00', '2011-01-01 12:00:00',
                  '2011-01-01 13:00:00'],
                 categories=[2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00], ordered=False, dtype='category')rb   r_   r`   rd   a  CategoricalIndex(['2011-01-01 09:00:00-05:00', '2011-01-01 10:00:00-05:00',
                  '2011-01-01 11:00:00-05:00', '2011-01-01 12:00:00-05:00',
                  '2011-01-01 13:00:00-05:00'],
                 categories=[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00], ordered=False, dtype='category')N)r   r   r   r   r   rh   r   rA   s   &   r   $test_categorical_index_repr_datetime8TestCategoricalRepr.test_categorical_index_repr_datetime  st    +#qA[-.k
 Aw#~~+#q\R[-.I
 Aw#~~r"   c                Z   \        R R^R7      p\        \        VRR7      4      pRp\        V4      V8X  g   Q h\        R R^RR7      p\        \        VRR7      4      pRp\        V4      V8X  g   Q h\        \        VP	                  V4      RR7      4      pR	p\        V4      V8X  g   Q hR
# )r[   r\   rx   Tr   aP  CategoricalIndex(['2011-01-01 09:00:00', '2011-01-01 10:00:00',
                  '2011-01-01 11:00:00', '2011-01-01 12:00:00',
                  '2011-01-01 13:00:00'],
                 categories=[2011-01-01 09:00:00, 2011-01-01 10:00:00, 2011-01-01 11:00:00, 2011-01-01 12:00:00, 2011-01-01 13:00:00], ordered=True, dtype='category')rb   r   a  CategoricalIndex(['2011-01-01 09:00:00-05:00', '2011-01-01 10:00:00-05:00',
                  '2011-01-01 11:00:00-05:00', '2011-01-01 12:00:00-05:00',
                  '2011-01-01 13:00:00-05:00'],
                 categories=[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00], ordered=True, dtype='category')aA  CategoricalIndex(['2011-01-01 09:00:00-05:00', '2011-01-01 10:00:00-05:00',
                  '2011-01-01 11:00:00-05:00', '2011-01-01 12:00:00-05:00',
                  '2011-01-01 13:00:00-05:00', '2011-01-01 09:00:00-05:00',
                  '2011-01-01 10:00:00-05:00', '2011-01-01 11:00:00-05:00',
                  '2011-01-01 12:00:00-05:00', '2011-01-01 13:00:00-05:00'],
                 categories=[2011-01-01 09:00:00-05:00, 2011-01-01 10:00:00-05:00, 2011-01-01 11:00:00-05:00, 2011-01-01 12:00:00-05:00, 2011-01-01 13:00:00-05:00], ordered=True, dtype='category')N)r   r   r   r   rf   r   s   &   r   ,test_categorical_index_repr_datetime_ordered@TestCategoricalRepr.test_categorical_index_repr_datetime_ordered  s    +#qA[d;<j
 Aw#~~+#q\R[d;<H
 Aw#~~[C$GHH Aw#~~r"   c                   \        R R^R7      p\        \        V4      4      pRp\        V4      V8X  g   Q h\        R R^R7      p\        \        V4      4      pRp\        V4      V8X  g   Q h\        R R^R7      p\        \        V4      4      pRp\        V4      V8X  g   Q h\        R R^R7      p\        \        V4      4      pRp\        V4      V8X  g   Q h\        \        VP	                  V4      4      4      pRp\        V4      V8X  g   Q h\        RR	^R7      p\        \        V4      4      pR
p\        V4      V8X  g   Q hR# )r[   r\   rx   zfCategoricalIndex(['2011-01-01 09:00'], categories=[2011-01-01 09:00], ordered=False, dtype='category')zCategoricalIndex(['2011-01-01 09:00', '2011-01-01 10:00'], categories=[2011-01-01 09:00, 2011-01-01 10:00], ordered=False, dtype='category')zCategoricalIndex(['2011-01-01 09:00', '2011-01-01 10:00', '2011-01-01 11:00'], categories=[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00], ordered=False, dtype='category')a!  CategoricalIndex(['2011-01-01 09:00', '2011-01-01 10:00', '2011-01-01 11:00',
                  '2011-01-01 12:00', '2011-01-01 13:00'],
                 categories=[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00], ordered=False, dtype='category')a  CategoricalIndex(['2011-01-01 09:00', '2011-01-01 10:00', '2011-01-01 11:00',
                  '2011-01-01 12:00', '2011-01-01 13:00', '2011-01-01 09:00',
                  '2011-01-01 10:00', '2011-01-01 11:00', '2011-01-01 12:00',
                  '2011-01-01 13:00'],
                 categories=[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00], ordered=False, dtype='category')ry   rz   zCategoricalIndex(['2011-01', '2011-02', '2011-03', '2011-04', '2011-05'], categories=[2011-01, 2011-02, 2011-03, 2011-04, 2011-05], ordered=False, dtype='category')N)r
   r   r   r   rf   r   s   &   r   "test_categorical_index_repr_period6TestCategoricalRepr.test_categorical_index_repr_period  s?   -CC[-.zAw#~~-CC[-. aAw#~~-CC[-. GAw#~~-CC[-.\ Aw#~~[C9:\ Aw#~~93:[-. yAw#~~r"   c                    \        R R^R7      p\        \        VRR7      4      pRp\        V4      V8X  g   Q h\        RR^R7      p\        \        VRR7      4      pRp\        V4      V8X  g   Q hR	# )
r[   r\   rx   Tr   a   CategoricalIndex(['2011-01-01 09:00', '2011-01-01 10:00', '2011-01-01 11:00',
                  '2011-01-01 12:00', '2011-01-01 13:00'],
                 categories=[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00], ordered=True, dtype='category')ry   rz   zCategoricalIndex(['2011-01', '2011-02', '2011-03', '2011-04', '2011-05'], categories=[2011-01, 2011-02, 2011-03, 2011-04, 2011-05], ordered=True, dtype='category')N)r
   r   r   r   r   s   &   r   *test_categorical_index_repr_period_ordered>TestCategoricalRepr.test_categorical_index_repr_period_ordered  ss    -CC[d;<[ Aw#~~93:[d;< xAw#~~r"   c                    \        R ^R7      p\        \        V4      4      pRp\        V4      V8X  g   Q h\        R^
R7      p\        \        V4      4      pRp\        V4      V8X  g   Q hR# )r   r   zCategoricalIndex(['1 days', '2 days', '3 days', '4 days', '5 days'], categories=[1 days, 2 days, 3 days, 4 days, 5 days], ordered=False, dtype='category')r   a  CategoricalIndex(['0 days 01:00:00', '1 days 01:00:00', '2 days 01:00:00',
                  '3 days 01:00:00', '4 days 01:00:00', '5 days 01:00:00',
                  '6 days 01:00:00', '7 days 01:00:00', '8 days 01:00:00',
                  '9 days 01:00:00'],
                 categories=[0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00, 3 days 01:00:00, ..., 6 days 01:00:00, 7 days 01:00:00, 8 days 01:00:00, 9 days 01:00:00], ordered=False, dtype='category')Nr   r   r   r   r   s   &   r   %test_categorical_index_repr_timedelta9TestCategoricalRepr.test_categorical_index_repr_timedelta  sj    h2[-. oAw#~~i4[-.O Aw#~~r"   c                    \        R ^R7      p\        \        VRR7      4      pRp\        V4      V8X  g   Q h\        R^
R7      p\        \        VRR7      4      pRp\        V4      V8X  g   Q hR# )r   r   Tr   zCategoricalIndex(['1 days', '2 days', '3 days', '4 days', '5 days'], categories=[1 days, 2 days, 3 days, 4 days, 5 days], ordered=True, dtype='category')r   a  CategoricalIndex(['0 days 01:00:00', '1 days 01:00:00', '2 days 01:00:00',
                  '3 days 01:00:00', '4 days 01:00:00', '5 days 01:00:00',
                  '6 days 01:00:00', '7 days 01:00:00', '8 days 01:00:00',
                  '9 days 01:00:00'],
                 categories=[0 days 01:00:00, 1 days 01:00:00, 2 days 01:00:00, 3 days 01:00:00, ..., 6 days 01:00:00, 7 days 01:00:00, 8 days 01:00:00, 9 days 01:00:00], ordered=True, dtype='category')Nr   r   s   &   r   -test_categorical_index_repr_timedelta_orderedATestCategoricalRepr.test_categorical_index_repr_timedelta_ordered  sn    h2[d;< nAw#~~i4[d;<N Aw#~~r"   c                F    \        \        . RO4      4      pRpW8X  g   Q hR# )r2   z5[1, '2', 3, 4]
Categories (4, object): [1, 3, 4, '2']N)r2   2r?   r@   )r   r   )r   resultr   s   &  r   test_categorical_str_repr-TestCategoricalRepr.test_categorical_str_repr#  s"    k.12K!!!r"   c                j    \        . ROVR7      p\        \        V4      4      pRV: R2pW48X  g   Q hR# )appler/   z7['apple', 'banana', 'cherry', 'cherry']
Categories (3, z ): ['apple', 'banana', 'cherry']N)r   bananacherryr   )r   r   r   )r   string_dtype_no_objectrs   r   r   s   &&   r   "test_categorical_with_string_dtype6TestCategoricalRepr.test_categorical_with_string_dtype)  sF    3;Q
 k!n%MNdMg  hH  I!!!r"   r#   N)r$   r%   r&   r'   r9   r<   rB   rI   rT   rX   ri   rl   ru   r|   r   r   r   r   r   r   r   r   r   r   r   r   r   r(   r)   r*   s   @r   r-   r-      s     "( 	""#H66>@!F	 ::BB&:%N  "" "r"   r-   )numpyr5   pandasr   r   r   r   r   r   r	   r
   r   r   r-   r#   r"   r   <module>r      s-    
 
 

" 
"T" T"r"   