§
    rŠtj"  ã                   ó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    úV/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/sklearn/utils/_dataframe.pyÚis_df_or_seriesr	   	   s.   € õ " !Ñ$Ô$ÐWÕ(>¸qÑ(AÔ(AÐWÅ_ÐUVÑEWÔEWÐ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   € ðÝŒ[˜Ô"ˆˆøÝð ð ð Øˆuˆuðøøøå�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   € ðÝŒ[˜Ô"ˆˆøÝð ð ð Øˆuˆuðøøøå�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   € ðÝŒ[˜Ô#ˆˆøÝð ð ð Øˆuˆuðøøøå�a˜"œ( B¤N°B´H¸b¼oÐ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
   