gL i,ddlmZmZmZddlmZddZy)) CategoricalIndexSeries)BaseMaskedArrayNct|tr |j}npt|tr||j|k(r |j}nB|J|j j |}t|tsJ|j|}t|tr |jSt|tr|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). _ndarray) isinstancer_valuesrnamecolumnsget_locint_get_column_arrayr_datargetattr)objcolarricols a/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/tests/copy_view/util.py get_arrayr s#ukk C ckSXX_kk{{""3'$$$$##D)#'yy C % 3 C (()N)pandasrrrpandas.core.arraysrrrrrs /)r