+
    xȇi                     b    ^ RI t ^ 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)CategoricalIndex	DataFrameIntervalSeriesisnullc                     a  ] tR t^t o ]P
                  P                  RRR]P                  .. RO]	P                  . RO3. RORR]P                  .]	P                  . RO3RR]P                  .. RO]	P                  . RO3. RORR]P                  .]	P                  . RO3.4      R 4       tR tR tR tR tR	 tR
 tR tR tR tRtV tR# )TestDataFrameLogicalOperatorszleft, right, op, expectedTFc                l    V! V! V4      V! V4      4      pV! V4      p\         P                  ! Wd4       R # )N)tmassert_equal)selfleftrightopexpectedframe_or_seriesresults   &&&&&& s/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/test_logical_ops.pytest_logical_operators_nans9TestDataFrameLogicalOperators.test_logical_operators_nans   s0    > OD)?5+AB"8,
)    c                j   \        ^.R7      pW,          p\        P                  ! W!4       W,          p\        P                  ! W!4       \        ^^.R7      pW,          p\        P                  ! W#4       \        ^.R.R7      pWD,          p\        R^.R.R7      p\        P                  ! W%4       R# )   indexAr   columnsFNr   r   assert_frame_equal)r   dfr   df2dfar   s   &     r   test_logical_ops_empty_frame:TestDataFrameLogicalOperators.test_logical_ops_empty_frame8   s     aS!
f)
f)q!f%
f*qcC51U1#u=
f/r   c                    \        R ^.R.R7      pW,          p\        P                  ! W!4       W,          p\        P                  ! W!4       R# )Tr   r   Nr   )r   	df1a_boolr   s   &  r   test_logical_ops_bool_frame9TestDataFrameLogicalOperators.test_logical_ops_bool_frameM   s@    d1#u=	&
f0&
f0r   c                    \        ^^.R.R7      p\        R^.R.R7      pW,          p\        P                  ! W24       VR,          VR,          ,          p\        P                  ! WBR,          4       R# )r   r   r   TN)r   r   r    assert_series_equal)r   df1a_intr'   r   res_sers   &    r   test_logical_ops_int_frame8TestDataFrameLogicalOperators.test_logical_ops_int_frameW   sb    QqcC59d1#u=	%
f0 3-)C.0
w#7r   c                Z   \        R ^.R.R7      p\        R^.R.R7      p\        P                  ! R4      p\        P                  ! \
        VR7      ;_uu_ 4        W#,           RRR4       \        R^.R.R7      p\        R^.R.R7      pV'       d&   VR,          P                  P                  R8X  d   R	pM\        P                  ! R
4      p\        P                  ! \
        VR7      ;_uu_ 4        W#,           RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)g      ?r   r   Tz5unsupported operand type(s) for |: 'float' and 'bool'matchNfoopyarrowz-operation 'or_' not supported for dtype 'str'z3unsupported operand type(s) for |: 'str' and 'bool')r   reescapepytestraises	TypeErrordtypestorage)r   using_infer_stringdf1r"   msgs   &&   r   test_logical_ops_invalid6TestDataFrameLogicalOperators.test_logical_ops_invalidc   s     A36QC#7iiOP]]9C00I 1 aS3%8QC#7#c(.."8"8I"EAC))QRC]]9C00I 10 10 100s   	D3	DD	D*	c                  aa VV3R  lpV3R lpRRRRRRRRRRR/RRRRRRRRRRR/RRRRRRRRRRR/RRRRRRRRRRR/RRRRRRRRRRR//oRRRRRRRRRRR/RRRRRRRRRRR/RRRRRRRRRRR/RRRRRRRRRRR/RRRRRRRRRRR//o\        S4      o\        S4      oV! \        P                  4       V! \        P                  4       V! \        P                  4       V! \        P
                  4       R	# )
c                   < V ! SS4      p\        V ! SP                  SP                  4      SP                  SP                  R 7      pVP                  P                  \
        P                  8X  g   Q h\        P                  ! W4       R# r   N	r   valuesr   r   r:   npbool_r   r    )r   r   r   r=   r"   s   &  r   _check_bin_opKTestDataFrameLogicalOperators.test_logical_operators.<locals>._check_bin_opv   sb    S\F 3::szz*#))S[[H ==&&"((222!!&3r   c                    < V ! S4      p\        V ! SP                  4      SP                  SP                  R 7      pVP                  P                  \
        P                  8X  g   Q h\        P                  ! W4       R# rC   rD   )r   r   r   r=   s   &  r   _check_unary_opMTestDataFrameLogicalOperators.test_logical_operators.<locals>._check_unary_op~   sT    WF CJJsyy#++VH==&&"((222!!&3r   aTbFcdeN)r   operatorand_or_xorinv)r   rH   rK   r=   r"   s   &  @@r   test_logical_operators4TestDataFrameLogicalOperators.test_logical_operatorsu   sg   	4	4 #tS%eS$TJ#uc4eS%eL#uc5#tS%eL#tS%eS$TJ#tS%eS$TJ
 #tS%dCUK#uc4eS%eL#tS%dCUK#uc5#uc4eL#uc5#uc5#tL
 nnhmm$hll#hll#%r   c                   \        R \        P                  R.RRR./4      pVR ,          VR,          ,          p\        RR.4      p\        P
                  ! W#4       VR ,          P                  R4      VR,          ,          p\        RR.4      p\        P
                  ! W#4       VR ,          P                  R4      VR,          ,          p\        RR.4      p\        P
                  ! W#4       R# )rM   FrN   TN)r   rF   nanr   r   r+   fillna)r   rP   r   r   s   &   r   test_logical_with_nas3TestDataFrameLogicalOperators.test_logical_with_nas   s    sRVVUOS4,?@ 3!C&5$-(
v0 3u%#.4,'
v03u%#.4,'
v0r   c                   \        ^^4      \        ^^4      .p\        ^\        P                  .^\        P                  ..\	        V. VO\        ^^4      NR7      R7      p\        RR.RR..VP
                  \        R7      pV\        V4      ,          p\        RR.RR..\	        V. VO\        ^^4      NR7      R7      p\        P                  ! WE4       R# )r   )
categories)r   F)r   r:   TN)
r   r   rF   rZ   r   r   boolr   r   r    )r   	intervalsdatamaskr   r   s   &     r   $test_logical_ops_categorical_columnsBTestDataFrameLogicalOperators.test_logical_ops_categorical_columns   s    a^Xa^4	[1bff+&$&B	&B8Aq>&B
 U^eU^,dll$
 t$T]UDM*$&B	&B8Aq>&B
 	f/r   c                   \        . RO. ROR.R7      p\        . RO. ROR.R7      p\        P                  ! W4      p\        . RO. ROR.R7      p\        P                  ! W44       W,          p\        P                  ! W44       R# )	r   rM   r   N)r         )
         )ri         )rj   ri   rk   )         )r   rF   bitwise_xorr   r    )r   r=   r"   r   r   s   &    r   'test_int_dtype_different_index_not_boolETestDataFrameLogicalOperators.test_int_dtype_different_index_not_bool   sc    	uEL3%H)[seL
f/
f/r   c                    \        ^^.RR.R7      p\        ^^.RR.R7      p\        P                  ! \        RR7      ;_uu_ 4        W,           RRR4       R#   + '       g   i     R# ; i)r   rM   rN   r   rO   zunsupported operand typer1   N)r   r7   r8   r9   )r   r=   r"   s   &  r   ,test_different_dtypes_different_index_raisesJTestDataFrameLogicalOperators.test_different_dtypes_different_index_raises   sQ    AsCj1AsCj1]]9,FGGI HGGGs   	AA+	 N)TFT)TFF)__name__
__module____qualname____firstlineno__r7   markparametrizerF   rZ   rR   rS   rT   r   r$   r(   r.   r?   rW   r\   rd   rr   ru   __static_attributes____classdictcell__)__classdict__s   @r   r	   r	      s      [[# ubff%#$	 $ubff%$	 ubff%#$	 $ubff%#	'	
:*;:*0*1
8$&&P1"0*	0 r   r	   )rR   r5   numpyrF   r7   pandasr   r   r   r   r   pandas._testing_testingr   r	   rw   r   r   <module>r      s,     	    B Br   