1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U
­ý°ddã@sLddlZddlZddlmmZddlmZddl    m
Z Gdd„dƒZ dS)éN)Ú    DataFramec@sJeZdZej dddg¡dd„ƒZejdd„ƒZ    dd    „Z
ej d
d „ƒZ d S) ÚTestCopyÚattrÚindexÚcolumnscCs<t||ƒ}d|_| ¡}dt||ƒ_t||ƒjdks8t‚dS)NZfoo)ÚgetattrÚnameÚcopyÚAssertionError)ÚselfÚ float_framerÚindÚcp©rú[d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/frame/methods/test_copy.pyÚtest_copy_index_name_checking s
 
 z&TestCopy.test_copy_index_name_checkingcCs’tddgiƒ}dg|d<|d| ¡d|djd<t |tdgdgdœƒ¡dg|d<|djddkspt‚t |tdgdgdgdœƒ¡dS)    NÚaérÚxéÿÿÿÿ)rrÚy)rrr)rr    ÚvaluesÚtmZassert_frame_equalr
)r ÚdfrrrÚtest_copy_caches
 
zTestCopy.test_copy_cachecCs<| ¡}|d|d<d|ks t‚| ¡}|j|jk    s8t‚dS)NÚAÚE)r    r
Ú_mgr)r r Zfloat_string_frameZcopr    rrrÚ    test_copy(s
  zTestCopy.test_copycCs”ttjjddddtjjdddddœƒ}tddƒD]*}tjjdddd|jdd…d|›f<q4t|jjƒdkstt    ‚| 
¡}t|jjƒd    kst    ‚dS)
Nrédé7)Úsize)rÚbé
Zn_é r) rÚnpÚrandomÚrandintÚrangeÚlocÚlenrÚblocksr
r    )r rÚiÚresultrrrÚtest_copy_consolidates1sþÿ(zTestCopy.test_copy_consolidatesN) Ú__name__Ú
__module__Ú __qualname__ÚpytestÚmarkZ parametrizerÚtdZskip_copy_on_write_invalid_testrrZskip_array_manager_invalid_testr.rrrrr
s
    
    r) Únumpyr%r2Zpandas.util._test_decoratorsÚutilZ_test_decoratorsr4ZpandasrZpandas._testingZ_testingrrrrrrÚ<module>s