
    3;ji"                     6    d Z ddlZd Zd Zd Zd Zd Zd ZdS )	z=Functions to determine if an object is a dataframe or series.    Nc                 \    t          |           pt          |           pt          |           S )a
  Return True if the X is a dataframe or series.

    Parameters
    ----------
    X : {array-like, dataframe}
        The array-like or dataframe object to check.

    Returns
    -------
    bool
        True if the X is a dataframe or series, False otherwise.
    )is_pandas_df_or_seriesis_polars_df_or_seriesis_pyarrow_data)Xs    R/root/voice-cloning/.venv/lib/python3.11/site-packages/sklearn/utils/_dataframe.pyis_df_or_seriesr	   	   s.     "!$$W(>q(A(AW_UVEWEWW    c                     	 t           j        d         }n# t          $ r Y dS w xY wt          | |j        |j        f          S )a  Return True if the X is a pandas dataframe or series.

    Parameters
    ----------
    X : {array-like, dataframe}
        The array-like or dataframe object to check.

    Returns
    -------
    bool
        True if the X is a pandas dataframe or series, False otherwise.
    pandasFsysmodulesKeyError
isinstance	DataFrameSeriesr   pds     r   r   r      P    ["   uua",	2333    
##c                 v    	 t           j        d         }n# t          $ r Y dS w xY wt          | |j                  S )a  Return True if the X is a pandas dataframe.

    Parameters
    ----------
    X : {array-like, dataframe}
        The array-like or dataframe object to check.

    Returns
    -------
    bool
        True if the X is a pandas dataframe, False otherwise.
    r   Fr   r   r   r   r   r   s     r   is_pandas_dfr   -   I    ["   uua&&&r   c                     	 t           j        d         }n# t          $ r Y dS w xY wt          | |j        |j        |j        |j        f          S )aN  Return True if the X is a pyarrow Table, RecordBatch, Array or ChunkedArray.

    Parameters
    ----------
    X : {array-like, dataframe}
        The array-like or dataframe object to check.

    Returns
    -------
    bool
        True if the X is a pyarrow Table, RecordBatch, Array or ChunkedArray,
        False otherwise.
    pyarrowF)r   r   r   r   TableRecordBatchArrayChunkedArray)r   pas     r   r   r   A   sX    [#   uua"(BNBHboNOOOr   c                     	 t           j        d         }n# t          $ r Y dS w xY wt          | |j        |j        f          S )a  Return True if the X is a polars dataframe or series.

    Parameters
    ----------
    X : {array-like, dataframe}
        The array-like or dataframe object to check.

    Returns
    -------
    bool
        True if the X is a polars dataframe or series, False otherwise.
    polarsFr   r   pls     r   r   r   V   r   r   c                 v    	 t           j        d         }n# t          $ r Y dS w xY wt          | |j                  S )a  Return True if the X is a polars dataframe.

    Parameters
    ----------
    X : {array-like, dataframe}
        The array-like or dataframe object to check.

    Returns
    -------
    bool
        True if the X is a polarsdataframe, False otherwise.
    r$   Fr   r%   s     r   is_polars_dfr(   j   r   r   )__doc__r   r	   r   r   r   r   r(    r
   r   <module>r+      s    C C
 


X X X 4 4 4(' ' '(P P P*4 4 4(' ' ' ' 'r
   