Load an SPSS file from the file path, returning a DataFrame.
File path.
Return a subset of the columns. If None, return all columns.
Convert categorical columns into pd.Categorical.
Back-end data type applied to the resultant DataFrame (still experimental). Behaviour is as follows:
"numpy_nullable": returns nullable-dtype-backed DataFrame (default).
"pyarrow": returns pyarrow-backed nullable ArrowDtype DataFrame.
Added in version 2.0.
Examples
>>> df = pd.read_spss("spss_data.sav")
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.read_spss.html