o
    Û­jƒ  ã                   @   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   úX/var/www/html/CropPilot/venv/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    