xorbits.pandas.read_spss#

xorbits.pandas.read_spss(path: str | Path, usecols: Sequence[str] | None = None, convert_categoricals: bool = True, dtype_backend: DtypeBackend | lib.NoDefault = _NoDefault.no_default) DataFrame[source]#

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

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.

  • dtype_backend ({"numpy_nullable", "pyarrow"}, defaults to NumPy backed DataFrames) –

    Which dtype_backend to use, e.g. whether a DataFrame should have NumPy arrays, nullable dtypes are used for all dtypes that have a nullable implementation when “numpy_nullable” is set, pyarrow is used for all dtypes if “pyarrow” is set.

    The dtype_backends are still experimential.

    New in version 2.0(pandas).

Return type

DataFrame

Warning

This method has not been implemented yet. Xorbits will try to execute it with pandas.

This docstring was copied from pandas.