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). If not specified, the default behavior is to not use nullable data types. If specified, the behavior is as follows:
"numpy_nullable"
: returns nullable-dtype-backed DataFrame
"pyarrow"
: returns pyarrow-backed nullable ArrowDtype
DataFrame
Added in version 2.0.
Additional keyword arguments that can be passed to pyreadstat.read_sav()
.
Added in version 3.0.
DataFrame based on the SPSS file.
See also
read_csv
Read a comma-separated values (csv) file into a pandas DataFrame.
read_excel
Read an Excel file into a pandas DataFrame.
read_sas
Read an SAS file into a pandas DataFrame.
read_orc
Load an ORC object into a pandas DataFrame.
read_feather
Load a feather-format object into a pandas DataFrame.
Examples
>>> df = pd.read_spss("spss_data.sav")
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4