zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
U
¬ý°d8ã@s¤ddlmZddlmZddlmZmZddlmZddl    m
Z
ddl m Z ddl mZddlmZer€dd    lmZdd
lmZd d ejfd dddddœdd„Zd S)é)Ú annotations)ÚPath)Ú TYPE_CHECKINGÚSequence)Úlib)Úimport_optional_dependency)Úcheck_dtype_backend)Ú is_list_like)Ústringify_path)Ú DtypeBackend)Ú    DataFrameNTz
str | PathzSequence[str] | NoneÚboolzDtypeBackend | lib.NoDefaultr )ÚpathÚusecolsÚconvert_categoricalsÚ dtype_backendÚreturncCsbtdƒ}t|ƒ|dk    r0t|ƒs(tdƒ‚t|ƒ}|jt|ƒ||d\}}|tjk    r^|j    |d}|S)a?
    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.
 
        .. versionadded:: 2.0
 
    Returns
    -------
    DataFrame
    Ú
pyreadstatNzusecols must be list-like.)rZapply_value_formats)r)
rrr    Ú    TypeErrorÚlistZread_savr
rÚ
no_defaultZconvert_dtypes)rrrrrZdfÚ_©rúEd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/io/spss.pyÚ    read_spsssÿ
 
 r)Ú
__future__rÚpathlibrÚtypingrrZ pandas._libsrZpandas.compat._optionalrZpandas.util._validatorsrZpandas.core.dtypes.inferencer    Zpandas.io.commonr
Zpandas._typingr Zpandasr rrrrrrÚ<module>s         ü