A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.read_spss.html below:

pandas.read_spss — pandas 2.3.1 documentation

pandas.read_spss#
pandas.read_spss(path, usecols=None, convert_categoricals=True, dtype_backend=<no_default>)[source]#

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

Parameters:
pathstr 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.

dtype_backend{‘numpy_nullable’, ‘pyarrow’}, default ‘numpy_nullable’

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.

Returns:
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