ó
    Ñ]jk  ã                  óú   • S SK Jr  S SKJrJr  S SKJr  S SKJr  S SK	J
r
  S SKJr  S SKJr  S SKJr  \(       a  S S	KJr  S S
KJr  S SKJr  S SKJr  \
" S5      SS\R2                  4           SS jj5       rg)é    )Úannotations)ÚTYPE_CHECKINGÚAny)Úlib)Úimport_optional_dependency)Ú
set_module)Úcheck_dtype_backend)Úis_list_like)Ústringify_path)ÚSequence)ÚPath)ÚDtypeBackend)Ú	DataFrameÚpandasNTc                ó,  • [        S5      n[        U5        Ub&  [        U5      (       d  [        S5      e[	        U5      nUR
                  " [        U 5      4UUS.UD6u  pgUR                  Ul        U[        R                  La  UR                  US9nU$ )aY  
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
Ú
pyreadstatzusecols must be list-like.)ÚusecolsÚapply_value_formats)Údtype_backend)r   r	   r
   Ú	TypeErrorÚlistÚread_savr   Ú__dict__Úattrsr   Ú
no_defaultÚconvert_dtypes)Úpathr   Úconvert_categoricalsr   Úkwargsr   ÚdfÚmetadatas           ÚK/home/mande/repo/quber/.venv/lib/python3.13/site-packages/pandas/io/spss.pyÚ	read_spssr#      sŸ   € ôh ,¨LÓ9€JÜ˜Ô&àÑÜ˜G×$Ñ$ÜÐ8Ó9Ð9Ü�w“-ˆà×&Ò&Ü�tÓðàØ0ñð ñ	�L€Bð × Ñ €B„HØœCŸN™NÒ*Ø×Ñ¨]ÐÐ;ˆØ€Ió    )r   z
str | Pathr   zSequence[str] | Noner   Úboolr   zDtypeBackend | lib.NoDefaultr   r   Úreturnr   )Ú
__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>r3      s˜   ðÝ "÷õ
 Ý >Ý .Ý 7å 5å +æÝ(Ýå+å ñ ˆHÓð %)Ø!%Ø25·.±.ð	DØ
ðDà!ðDð ðDð 0ð	Dð
 ðDð ôDó ñDr$   