§
    ªöÉg†  ã                  ó¨   — 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 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 ddej        fdd„ZdS )é    )Úannotations)ÚTYPE_CHECKING)Úlib)Úimport_optional_dependency)Úcheck_dtype_backend)Úis_list_like)Ústringify_path)ÚSequence)ÚPath)ÚDtypeBackend)Ú	DataFrameNTÚpathú
str | PathÚusecolsúSequence[str] | NoneÚconvert_categoricalsÚboolÚdtype_backendúDtypeBackend | lib.NoDefaultÚreturnr   c                óP  — t          d¦  «        }t          |¦  «         |�-t          |¦  «        st          d¦  «        ‚t	          |¦  «        }|                     t          | ¦  «        ||¬¦  «        \  }}|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'}, default 'numpy_nullable'
        Back-end data type applied to the resultant :class:`DataFrame`
        (still experimental). Behaviour is as follows:

        * ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
          (default).
        * ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
          DataFrame.

        .. versionadded:: 2.0

    Returns
    -------
    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   ÚdfÚmetadatas          úZ/var/www/html/nodeJS/PythonScripts/venv3.11/lib/python3.11/site-packages/pandas/io/spss.pyÚ	read_spssr$      s²   € õH ,¨LÑ9Ô9€JÝ˜Ñ&Ô&Ð&àÐÝ˜GÑ$Ô$ð 	:ÝÐ8Ñ9Ô9Ð9Ý�w‘-”-ˆà×&Ò&Ý�tÑÔ gÐCWð 'ñ ô �L€Bˆð Ô €B„HØ�CœNÐ*Ð*Ø×Ò¨]ÐÑ;Ô;ˆØ€Ió    )
r   r   r   r   r   r   r   r   r   r   )Ú
__future__r   Útypingr   Úpandas._libsr   Úpandas.compat._optionalr   Úpandas.util._validatorsr   Úpandas.core.dtypes.inferencer   Úpandas.io.commonr	   Úcollections.abcr
   Úpathlibr   Úpandas._typingr   Úpandasr   r   r$   © r%   r#   ú<module>r2      s  ðØ "Ð "Ð "Ð "Ð "Ð "à  Ð  Ð  Ð  Ð  Ð  à Ð Ð Ð Ð Ð Ø >Ð >Ð >Ð >Ð >Ð >Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7à 5Ð 5Ð 5Ð 5Ð 5Ð 5à +Ð +Ð +Ð +Ð +Ð +àð !Ø(Ð(Ð(Ð(Ð(Ð(ØÐÐÐÐÐà+Ð+Ð+Ð+Ð+Ð+à Ð Ð Ð Ð Ð ð
 %)Ø!%Ø25´.ð	2ð 2ð 2ð 2ð 2ð 2ð 2r%   