+
    xȇi$              
          ^ RI t^ RIt^ RIt^ RIHtHt ^ RIHt	 ]P                  P                  RR]! . RO4      3R]! . RO4      3R]! . RO4      3.4      R 4       t]P                  P                  RR. RO3R. RO3R. RO3.4      R 4       t]P                  P                  R	. ]! ]! ^4      4      .4      R
 4       t ! R R4      tR# )    N)CategoricalSerieszkeep, expectedfirstFlastc                    \        . RO\        P                  ! V 4      R7      pVP                  R8X  d   \        P                  ! R4       \
        P                  ! VP                  VR7      V4       \
        P                  ! VP                  VR7      W2( ,          4       VP                  4       pVP                  VRR7      pVe   Q h\
        P                  ! WCV( ,          4       R# )	   dtypeboolz.tested separately in test_drop_duplicates_boolkeepTr   inplaceN)r   r         r   r      )
r   npr
   pytestskiptmassert_series_equal
duplicateddrop_duplicatescopy)any_numpy_dtyper   expectedtcscreturn_values   &&&   ڀ/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/series/methods/test_drop_duplicates.pytest_drop_duplicatesr!      s     
%RXXo-F	GB	xx6DE2==d=3X>2--4-8"Y-H	B%%4%>L28)}-    c                 n   \        . RO4      p\        V4      p\        P                  ! VP                  V R7      V4       \        P                  ! VP	                  V R7      W!( ,          4       VP                  4       pVP	                  V R R7      p\        P                  ! W2V( ,          4       Ve   Q hR# )Tr   r   NTFTF)r   r   r   r   r   r   )r   r   r   r   r   s   &&   r    test_drop_duplicates_boolr%   "   s     
*	+BhH2==d=3X>2--4-8"Y-H	B%%4%>L28)}-r"   valuesc                 v   \        V\        P                  ! V 4      R 7      p\        R.\        V4      ,          RR 7      pVP                  R8X  d   VR,          pVR,          p\        P
                  ! VP                  VR7      V4       VP                  VR7      p\        P
                  ! WS4       WSJg   Q hR# )r	   Fr   :N   Nr   N)r   r   r
   lenr   r   r   r   )r   r   r&   r   r   result_droppeds   &&&   r    "test_drop_duplicates_no_duplicatesr+   5   s    	bhh7	8BugB'v6H	xx6 VB<2==d=3X>''T'2N>. ###r"   c                      a  ] tR t^It o ]P
                  ! . ROR7      R 4       t]P
                  R 4       tR tR t	R t
]P
                  R 4       tR tR	 tR
 tR tR tR tR tR tRtV tR# )TestSeriesDropDuplicates)paramsc                    VP                   # )z9
Fixture that provides different data types for testing.
)param)selfrequests   &&r    r
   TestSeriesDropDuplicates.dtypeJ   s     }}r"   c                    \         P                  ! . RO\         P                  ! V4      R7      p\         P                  ! . RO\         P                  ! V4      R7      p\        WCVR7      p\	        V4      pV# )zH
Fixture that creates a Categorical Series with some unused categories.
r	   
categoriesorderedr   r(   r   r   r   )r   r(   r   r   r   arrayr
   r   r   )r1   r
   r7   	cat_arrayinput1cattc1s   &&&    r    cat_series_unused_category3TestSeriesDropDuplicates.cat_series_unused_categoryS   sN     HH_BHHUOD	,bhhuo>&HSk
r"   c                X   Tp\        . RO4      pVP                  4       p\        P                  ! WC4       VP	                  4       p\        P                  ! WBV( ,          4       VP                  4       pVP	                  RR7      pVe   Q h\        P                  ! WRV( ,          4       R# )FTr   N)FFFTr   r   r   r   r   r   r1   r?   r>   r   resultr   r   s   &&     r    )test_drop_duplicates_categorical_non_boolBTestSeriesDropDuplicates.test_drop_duplicates_categorical_non_bool`   s    (56!
v0$$&
vH9~6XXZ))$)7###
ry>2r"   c                b   Tp\        . RO4      pVP                  RR7      p\        P                  ! WC4       VP	                  RR7      p\        P                  ! WBV( ,          4       VP                  4       pVP	                  RRR7      pVe   Q h\        P                  ! WRV( ,          4       R# )FTr   r   r   N)FFTFrC   rD   s   &&     r    2test_drop_duplicates_categorical_non_bool_keeplastKTestSeriesDropDuplicates.test_drop_duplicates_categorical_non_bool_keeplastp   s     )56V,
v0$$&$1
vH9~6XXZ))vt)D###
ry>2r"   c                b   Tp\        . RO4      pVP                  R R7      p\        P                  ! WC4       VP	                  R R7      p\        P                  ! WBV( ,          4       VP                  4       pVP	                  R RR7      pVe   Q h\        P                  ! WRV( ,          4       R# )FTr   r   NFFTTrC   rD   s   &&     r    3test_drop_duplicates_categorical_non_bool_keepfalseLTestSeriesDropDuplicates.test_drop_duplicates_categorical_non_bool_keepfalse   s     )45U+
v0$$%$0
vH9~6XXZ))ud)C###
ry>2r"   c                    \         P                  ! . RO\         P                  ! V4      R7      p\         P                  ! . RO\         P                  ! V4      R7      p\        WCVR7      p\	        V4      pV# )zF
Fixture that creates a Categorical Series with no unused categories.
r	   r5   r8   )r   r(   r   r   r   r(   r   r9   )r1   r
   r7   r;   input2r=   tc2s   &&&    r    
cat_series#TestSeriesDropDuplicates.cat_series   sO    
 HH_BHHUOD	/rxxG&HSk
r"   c                X   Tp\        . RO4      pVP                  4       p\        P                  ! WC4       VP	                  4       p\        P                  ! WBV( ,          4       VP                  4       pVP	                  RR7      pVe   Q h\        P                  ! WRV( ,          4       R# )FTrB   NFFFFTTFrC   r1   rR   rQ   r   rE   r   r   s   &&     r    *test_drop_duplicates_categorical_non_bool2CTestSeriesDropDuplicates.test_drop_duplicates_categorical_non_bool2   s    IJ!
v0$$&
vH9~6XXZ))$)7###
ry>2r"   c                b   Tp\        . RO4      pVP                  RR7      p\        P                  ! WC4       VP	                  RR7      p\        P                  ! WBV( ,          4       VP                  4       pVP	                  RRR7      pVe   Q h\        P                  ! WRV( ,          4       R# )FTr   r   r   NFTTFFFFrC   rV   s   &&     r    3test_drop_duplicates_categorical_non_bool2_keeplastLTestSeriesDropDuplicates.test_drop_duplicates_categorical_non_bool2_keeplast   s    IJV,
v0$$&$1
vH9~6XXZ))vt)D###
ry>2r"   c                b   Tp\        . RO4      pVP                  R R7      p\        P                  ! WC4       VP	                  R R7      p\        P                  ! WBV( ,          4       VP                  4       pVP	                  R RR7      pVe   Q h\        P                  ! WRV( ,          4       R# )FTr   r   NFTTFTTFrC   rV   s   &&     r    4test_drop_duplicates_categorical_non_bool2_keepfalseMTestSeriesDropDuplicates.test_drop_duplicates_categorical_non_bool2_keepfalse   s    GHU+
v0$$%$0
vH9~6XXZ))ud)C###
ry>2r"   c                (   \        \        . ROR R.VR7      4      p\        . R	O4      p\        P                  ! VP	                  4       V4       \        P                  ! VP                  4       W#( ,          4       VP                  4       pVP                  R R7      pVe   Q h\        P                  ! WBV( ,          4       \        . R
O4      p\        P                  ! VP	                  RR7      V4       \        P                  ! VP                  RR7      W#( ,          4       VP                  4       pVP                  RR R7      pVe   Q h\        P                  ! WBV( ,          4       \        . RO4      p\        P                  ! VP	                  RR7      V4       \        P                  ! VP                  RR7      W#( ,          4       VP                  4       pVP                  RR R7      pVe   Q h\        P                  ! WBV( ,          4       R# )TFr5   rB   Nr   r   r   r$   rL   TTFFTTTT)r   r   r   r   r   r   r   )r1   r7   r   r   r   r   s   &&    r    %test_drop_duplicates_categorical_bool>TestSeriesDropDuplicates.test_drop_duplicates_categorical_bool   s   *e}g
 45
r}}9
r113R	]CWWY))$)7###
rxi=145
r}}&}98D
r11v1>9NWWY))vt)D###
rxi=123
r}}%}8(C
r11u1=r)}MWWY))ud)C###
rxi=1r"   c           	         \        \        R RR RV.R R.R R7      4      pVP                  4       p\        \        R R\        P                  .R R.R R7      . ROR7      p\
        P                  ! W44       R# )TFr5   )indexN)r   r   r   )r   r   r   r   nanr   r   )r1   nulls_fixtureserrE   r   s   &&   r    (test_drop_duplicates_categorical_bool_naATestSeriesDropDuplicates.test_drop_duplicates_categorical_bool_na   su    udE=9 %=
 $$&ubff-4-QUV
 	v0r"   c                    \        . RO4      pVP                  RR7      p\        . RO4      p\        P                  ! W#4       R# )r   T)ignore_indexN)r   r(   r(   r   )r   r(   r   )r   r   r   r   r1   rj   rE   r   s   &   r    !test_drop_duplicates_ignore_index:TestSeriesDropDuplicates.test_drop_duplicates_ignore_index   s7    \"$$$$7)$
v0r"   c                    \         P                  ! R 4       \        . RORR7      pVP                  4       p\        . RORR7      p\        P
                  ! W#4       R# )pyarrowNzbool[pyarrow]r	   )TFNF)TFN)r   importorskipr   r   r   r   ro   s   &   r    test_duplicated_arrow_dtype4TestSeriesDropDuplicates.test_duplicated_arrow_dtype  sF    I&/G$$&-_E
v0r"   c                @   \         P                  ! R 4      p\        RR.\        P                  ! VP                  4       4      R7      pVP                  4       p\        R.\        P                  ! VP                  4       4      R7      p\        P                  ! W44       R# )rs   ar	   N)	r   rt   r   pd
ArrowDtypestringr   r   r   )r1   parj   rE   expecetds   &    r    "test_drop_duplicates_arrow_strings;TestSeriesDropDuplicates.test_drop_duplicates_arrow_strings  sj      +c3Zr}}RYY['AB$$&3%r}}RYY['AB
v0r"    N)int_uintfloat64str_ztimedelta64[h]zdatetime64[D])__name__
__module____qualname____firstlineno__r   fixturer
   r?   rF   rI   rM   rR   rW   r[   r_   rd   rk   rp   ru   r~   __static_attributes____classdictcell__)__classdict__s   @r    r-   r-   I   s     ^^U ^^
 
3 3$3$ ^^	 	3 3 3 2>1 111 1r"   r-   rU   rZ   r^   rL   rb   rc   )numpyr   r   pandasry   r   r   pandas._testing_testingr   markparametrizer!   r%   listranger+   r-   r   r"   r    <module>r      s        	&HIJ	GHI	DEF.. 	,-	+,	()   BU1X#78$ 9$&J1 J1r"   