1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
U
®ý°d=ã@s<ddlZddlmZddlmZdd„Zdd„Zdd„ZdS)    éN)ÚIndexcCs´| d¡}tdd„|jDƒƒ}t |j|¡| d¡}tdd„|jDƒƒ}t |j|¡| d¡}tdd„|jDƒƒ}t |j|¡| d¡}tdd„|jDƒƒ}t |j|¡dS)    Núfoo#cSsg|]}d|›‘qS©r©©Ú.0Úcrrúid:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/series/methods/test_add_prefix_suffix.pyÚ
<listcomp>    sz*test_add_prefix_suffix.<locals>.<listcomp>ú#foocSsg|]}|›d‘qS©r rrrrr    r
sú%cSsg|]}d|›‘qS©r rrrrr    r
scSsg|]}|›d‘qSrrrrrr    r
s©Ú
add_prefixrÚindexÚtmZassert_index_equalÚ
add_suffix)Ú string_seriesÚ with_prefixÚexpectedÚ with_suffixZwith_pct_prefixÚwith_pct_suffixrrr    Útest_add_prefix_suffixs
 
 
 
rcCsd|jddd}tdd„|jDƒƒ}t |j|¡|jddd}tdd„|jDƒƒ}t |j|¡dS)Nrr©ZaxiscSsg|]}d|›‘qSrrrrrr    r
sz/test_add_prefix_suffix_axis.<locals>.<listcomp>r cSsg|]}|›d‘qSr rrrrr    r
 sr)rrrrrrr    Útest_add_prefix_suffix_axiss rc    CsTtjtdd|jdddW5QRXtjtdd|jdddW5QRXdS)Nz&No axis named 1 for object type Series)Úmatchrér)ÚpytestZraisesÚ
ValueErrorrr)rrrr    Ú#test_add_prefix_suffix_invalid_axis$sr )    rZpandasrZpandas._testingZ_testingrrrr rrrr    Ú<module>s