
    d                        d dl mZ 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 erd d	lmZ d d
lmZ ddej        fddZdS )    )annotations)Path)TYPE_CHECKINGSequence)lib)import_optional_dependency)check_dtype_backend)is_list_like)stringify_path)DtypeBackend)	DataFrameNTpath
str | PathusecolsSequence[str] | Noneconvert_categoricalsbooldtype_backendDtypeBackend | lib.NoDefaultreturnr   c                8   t          d          }t          |           |-t          |          st          d          t	          |          }|                    t          |           ||          \  }}|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"}, defaults to NumPy backed DataFrames
        Which dtype_backend to use, e.g. whether a DataFrame should have NumPy
        arrays, nullable dtypes are used for all dtypes that have a nullable
        implementation when "numpy_nullable" is set, pyarrow is used for all
        dtypes if "pyarrow" is set.

        The dtype_backends are still experimential.

        .. versionadded:: 2.0

    Returns
    -------
    DataFrame
    
pyreadstatNzusecols must be list-like.)r   apply_value_formats)r   )
r   r	   r
   	TypeErrorlistread_savr   r   
no_defaultconvert_dtypes)r   r   r   r   r   df_s          J/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/io/spss.py	read_spssr"      s    > ,L99J&&&G$$ 	:8999w--tgCW    EB CN**];;I    )
r   r   r   r   r   r   r   r   r   r   )
__future__r   pathlibr   typingr   r   pandas._libsr   pandas.compat._optionalr   pandas.util._validatorsr	   pandas.core.dtypes.inferencer
   pandas.io.commonr   pandas._typingr   pandasr   r   r"    r#   r!   <module>r/      s	   " " " " " "             
       > > > > > > 7 7 7 7 7 7 5 5 5 5 5 5 + + + + + + !++++++      
 %)!%25.	, , , , , , ,r#   