HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/io/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/io/__pycache__/spss.cpython-36.pyc
3

���h��@szddlmZddlmZmZmZddlmZddlm	Z	ddl
mZddlm
Z
deeefeeeeed	�d
d�ZdS)
�)�Path)�Optional�Sequence�Union)�import_optional_dependency)�is_list_like)�	DataFrame)�stringify_pathNT)�path�usecols�convert_categoricals�returncCsFtd�}|dk	r*t|�s"td��nt|�}|jt|�||d�\}}|S)a�
    Load an SPSS file from the file path, returning a DataFrame.

    .. versionadded:: 0.25.0

    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.

    Returns
    -------
    DataFrame
    �
pyreadstatNzusecols must be list-like.)rZapply_value_formats)rr�	TypeError�listZread_savr	)r
rrrZdf�_�r�0/tmp/pip-build-5_djhm0z/pandas/pandas/io/spss.py�	read_spss
s
r)NT)ZpathlibrZtypingrrrZpandas.compat._optionalrZpandas.core.dtypes.inferencerZpandas.core.apirZpandas.io.commonr	�str�boolrrrrr�<module>s