U Dx`@szddlmZddlmZmZmZddlmZddlm Z ddl m Z ddl m Z d eeefeeeee d d d ZdS) )Path)OptionalSequenceUnion)import_optional_dependency) is_list_like) DataFrame)stringify_pathNT)pathusecolsconvert_categoricalsreturncCsFtd}|dk r*t|s"tdnt|}|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.)r Zapply_value_formats)rr TypeErrorlistZread_savr )r r r rZdf_r5/tmp/pip-target-zr53vnty/lib/python/pandas/io/spss.py read_spss s  r)NT)pathlibrtypingrrrZpandas.compat._optionalrZpandas.core.dtypes.inferencerZpandas.core.apirZpandas.io.commonr strboolrrrrrs