
    Mh                     <    S SK r S SKJrJr  S SKJr   " S S5      rg)    N)	DataFrameSeriesc                   &    \ rS rSrS rS rS rSrg)TestPipe
   c                     [        S/ SQ05      n[        S/ SQ05      nU[        L a
  US   nUS   nS nUR                  US5      n[        R                  " XS5        g )NA         )r      	   c                 
    X-  $ N xys     V/var/www/html/env/lib/python3.13/site-packages/pandas/tests/frame/methods/test_pipe.py<lambda>$TestPipe.test_pipe.<locals>.<lambda>   s        r   )r   r   pipetmassert_equal)selfframe_or_seriesobjexpectedfresults         r   	test_pipeTestPipe.test_pipe   sZ    i()c9-.f$c(C}H!Q
)r   c                     [        S/ SQ05      n[        R                  " X!5      nS nUR                  US4S5      n[        R                  " XB5        g )Nr	   r
   c                     U$ r   r   r   s     r   r   *TestPipe.test_pipe_tuple.<locals>.<lambda>       r   r   r   )r   r   get_objr   r   )r   r   r   r!   r"   s        r   test_pipe_tupleTestPipe.test_pipe_tuple   sD    i()jj.1c(A&
$r   c                     [        S/ SQ05      n[        R                  " X!5      nS nSn[        R                  " [
        US9   UR                  US4SSS	9  S S S 5        g ! , (       d  f       g = f)
Nr	   r
   c                     U$ r   r   r   s     r   r   0TestPipe.test_pipe_tuple_error.<locals>.<lambda>"   r(   r   z0y is both the pipe target and a keyword argument)matchr   r   r   r   )r   r   r)   pytestraises
ValueErrorr   )r   r   r   r!   msgs        r   test_pipe_tuple_errorTestPipe.test_pipe_tuple_error   sY    i()jj.@]]:S1HHaXaH( 211s   A!!
A/r   N)__name__
__module____qualname____firstlineno__r#   r*   r4   __static_attributes__r   r   r   r   r   
   s    	*%	)r   r   )r0   pandasr   r   pandas._testing_testingr   r   r   r   r   <module>r>      s     ) )r   