
    Owg                     ,    d dl mZmZmZ d dlmZ ddZy)    )CategoricalIndexSeries)BaseMaskedArrayNc                    t        | t              r| j                  }npt        | t              r|| j                  |k(  r| j                  }nB|J | j
                  j                  |      }t        |t              sJ | 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).
    _ndarray)
isinstancer   _valuesr   namecolumnsget_locint_get_column_arrayr   _datar   getattr)objcolarricols       R/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/copy_view/util.py	get_arrayr   	   s     #ukk	C	 ckSXX_kk{{""3'$$$$##D)#'yy	C	%
3
C((    )N)pandasr   r   r   pandas.core.arraysr   r    r   r   <module>r      s    
 /)r   