o
    Mf                     @   s.   d dl mZmZmZ d dlmZ dddZdS )    )CategoricalIndexSeries)BaseMaskedArrayNc                 C   s   t | tr	| j}n*t | tr|du s| j|kr| j}n|dus!J | j|}t |ts.J | |}t |t	r;|j
S t |trB|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icol r   ]/var/www/html/analyze/labelStudio/lib/python3.10/site-packages/pandas/tests/copy_view/util.py	get_array	   s   



r   )N)pandasr   r   r   pandas.core.arraysr   r   r   r   r   r   <module>   s    