
    h                     6    d dl Z d dlmZ d dlmZ d Zd Zd Zy)    N)Indexc                    | j                  d      }t        | j                  D cg c]  }d| 	 c}      }t        j                  |j                  |       | j                  d      }t        | j                  D cg c]  }| d	 c}      }t        j                  |j                  |       | j                  d      }t        | j                  D cg c]  }d| 	 c}      }t        j                  |j                  |       | j                  d      }t        | j                  D cg c]  }| d	 c}      }t        j                  |j                  |       y c c}w c c}w c c}w c c}w )Nfoo##foo%
add_prefixr   indextmassert_index_equal
add_suffix)string_serieswith_prefixcexpectedwith_suffixwith_pct_prefixwith_pct_suffixs          WD:\jyotish\venv\Lib\site-packages\pandas/tests/series/methods/test_add_prefix_suffix.pytest_add_prefix_suffixr      sJ   **62K-*=*=>*=QQCj*=>?H+++X6**62K-*=*=>*=Q4j*=>?H+++X6#..s3O}':':;':!!g':;<H///:#..s3O}':':;':!1g':;<H///: ? ? < <s   E<E#E(*E-c                 |   | j                  dd      }t        | j                  D cg c]  }d| 	 c}      }t        j                  |j                  |       | j                  dd      }t        | j                  D cg c]  }| d	 c}      }t        j                  |j                  |       y c c}w c c}w )Nr   r   axisr   r   )r   r   r   r   r   s        r   test_add_prefix_suffix_axisr      s    **6*:K-*=*=>*=QQCj*=>?H+++X6#..vA.>O-*=*=>*=Q4j*=>?H///: ? ?s   B4 B9c                    t        j                  t        d      5  | j                  dd       d d d        t        j                  t        d      5  | j	                  dd       d d d        y # 1 sw Y   AxY w# 1 sw Y   y xY w)Nz&No axis named 1 for object type Series)matchr      r   )pytestraises
ValueErrorr	   r   )r   s    r   #test_add_prefix_suffix_invalid_axisr!   $   sk    	z)Q	R  a 0 
S 
z)Q	R  a 0 
S	R 
S	R 
S	Rs   A0A<0A9<B)	r   pandasr   pandas._testing_testingr   r   r   r!        r   <module>r'      s      ;$;1r&   