§
    tŠtjk  ã                  óÚ   — d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d dlmZ erd d	lmZ d d
lmZ d dlmZ d dlmZ  e
d¦  «        ddej        fdd„¦   «         ZdS )é    )Úannotations)ÚTYPE_CHECKINGÚAny)Úlib)Úimport_optional_dependency)Ú
set_module)Úcheck_dtype_backend)Úis_list_like)Ústringify_path)ÚSequence)ÚPath)ÚDtypeBackend)Ú	DataFrameÚpandasNTÚpathú
str | PathÚusecolsúSequence[str] | NoneÚconvert_categoricalsÚboolÚdtype_backendúDtypeBackend | lib.NoDefaultÚkwargsr   Úreturnr   c                óB  — t          d¦  «        }t          |¦  «         |�-t          |¦  «        st          d¦  «        ‚t	          |¦  «        } |j        t          | ¦  «        f||dœ|¤Ž\  }}|j        |_        |t          j
        ur|                     |¬¦  «        }|S )aé  
    Load an SPSS file from the file path, returning a DataFrame.

    Parameters
    ----------
    path : str or Path
        File path.
    usecols : list-like, optional
        Return a subset of the columns. If None, return all columns.
    convert_categoricals : bool, default is True
        Convert categorical columns into pd.Categorical.
    dtype_backend : {'numpy_nullable', 'pyarrow'}
        Back-end data type applied to the resultant :class:`DataFrame`
        (still experimental). If not specified, the default behavior
        is to not use nullable data types. If specified, the behavior
        is as follows:

        * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
        * ``"pyarrow"``: returns pyarrow-backed
          nullable :class:`ArrowDtype` :class:`DataFrame`

        .. versionadded:: 2.0
    **kwargs
        Additional keyword arguments that can be passed to :func:`pyreadstat.read_sav`.

        .. versionadded:: 3.0

    Returns
    -------
    DataFrame
        DataFrame based on the SPSS file.

    See Also
    --------
    read_csv : Read a comma-separated values (csv) file into a pandas DataFrame.
    read_excel : Read an Excel file into a pandas DataFrame.
    read_sas : Read an SAS file into a pandas DataFrame.
    read_orc : Load an ORC object into a pandas DataFrame.
    read_feather : Load a feather-format object into a pandas DataFrame.

    Examples
    --------
    >>> df = pd.read_spss("spss_data.sav")  # doctest: +SKIP
    Ú
pyreadstatNzusecols must be list-like.)r   Úapply_value_formats)r   )r   r	   r
   Ú	TypeErrorÚlistÚread_savr   Ú__dict__Úattrsr   Ú
no_defaultÚconvert_dtypes)r   r   r   r   r   r   ÚdfÚmetadatas           úL/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/pandas/io/spss.pyÚ	read_spssr(      sÁ   € õh ,¨LÑ9Ô9€JÝ˜Ñ&Ô&Ð&àÐÝ˜GÑ$Ô$ð 	:ÝÐ8Ñ9Ô9Ð9Ý�w‘-”-ˆà&�:Ô&Ý�tÑÔðàØ0ðð ð ð	ð �L€Bˆð Ô €B„HØ�CœNÐ*Ð*Ø×Ò¨]ÐÑ;Ô;ˆØ€Ió    )r   r   r   r   r   r   r   r   r   r   r   r   )Ú
__future__r   Útypingr   r   Úpandas._libsr   Úpandas.compat._optionalr   Úpandas.util._decoratorsr   Úpandas.util._validatorsr	   Úpandas.core.dtypes.inferencer
   Úpandas.io.commonr   Úcollections.abcr   Úpathlibr   Úpandas._typingr   r   r   r#   r(   © r)   r'   ú<module>r6      sK  ðØ "Ð "Ð "Ð "Ð "Ð "ðð ð ð ð ð ð ð ð
 Ð Ð Ð Ð Ð Ø >Ð >Ð >Ð >Ð >Ð >Ø .Ð .Ð .Ð .Ð .Ð .Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7à 5Ð 5Ð 5Ð 5Ð 5Ð 5à +Ð +Ð +Ð +Ð +Ð +àð !Ø(Ð(Ð(Ð(Ð(Ð(ØÐÐÐÐÐà+Ð+Ð+Ð+Ð+Ð+à Ð Ð Ð Ð Ð ð €ˆHÑÔð %)Ø!%Ø25´.ð	Dð Dð Dð Dñ ÔðDð Dð Dr)   