
    bMh                     .    d dl mZmZmZ d dlmZ ddZdS )    )CategoricalIndexSeries)BaseMaskedArrayNc                    t          | t                    r| j        }ntt          | t                    r|| j        |k    r| j        }nJ|J | j                            |          }t          |t                    sJ |                     |          }t          |t                    r|j
        S t          |t                    r|S t          |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).
    N_ndarray)
isinstancer   _valuesr   namecolumnsget_locint_get_column_arrayr   _datar   getattr)objcolarricols       [/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/copy_view/util.py	get_arrayr   	   s     #u *k	C	 	  *ckSX__k{""3''$$$$$$##D))#'' y	C	%	% 
3
C(((    )N)pandasr   r   r   pandas.core.arraysr   r    r   r   <module>r      si            
 / . . . . .) ) ) ) ) )r   