zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
U
­ý°d¡ã@s.ddlmZmZmZddlmZddd„ZdS)é)Ú CategoricalÚIndexÚSeries)ÚBaseMaskedArrayNcCst|tƒr|j}nTt|tƒr6|dks.|j|kr6|j}n0|dk    sBt‚|j |¡}t|tƒs\t‚|     |¡}t|t
ƒrv|j St|t ƒr„|St |d|ƒS)a 
    Helper method to get array for a DataFrame column or a Series.
 
    Equivalent of df[col].values, but without going through normal getitem,
    which triggers tracking references / CoW (and we might be testing that
    this is done by some other operation).
    NZ_ndarray)Ú
isinstancerZ_valuesrÚnameÚAssertionErrorÚcolumnsZget_locÚintZ_get_column_arrayrÚ_datarÚgetattr)ÚobjÚcolZarrZicol©rúRd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/copy_view/util.pyÚ    get_array    s
 
 
 
r)N)ZpandasrrrZpandas.core.arraysrrrrrrÚ<module>s