pandas.read_spss

pandas.read_spss(path: Union[str, pathlib.Path], usecols: Union[Sequence[str], NoneType] = None, convert_categoricals: bool = True) → pandas.core.frame.DataFrame[source]

Load an SPSS file from the file path, returning a DataFrame.

New in version 0.25.0.

Parameters
pathstring or Path

File path.

usecolslist-like, optional

Return a subset of the columns. If None, return all columns.

convert_categoricalsbool, default is True

Convert categorical columns into pd.Categorical.

Returns
DataFrame