| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pandas/io/__pycache__/ |
Upload File : |
�
. �g� � �� � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
erd dlmZ d d lmZ d d
lmZ d dlmZ dd
ej, f dd�Zy)� )�annotations)�
TYPE_CHECKING)�lib)�import_optional_dependency)�check_dtype_backend)�is_list_like)�stringify_path)�Sequence)�Path)�DtypeBackend)� DataFrameNTc �" � t d� }t |� |�!t |� st d� �t |� }|j t
| � ||�� \ }}|j |_ |t j ur|j |�� }|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'}, default 'numpy_nullable'
Back-end data type applied to the resultant :class:`DataFrame`
(still experimental). Behaviour is as follows:
* ``"numpy_nullable"``: returns nullable-dtype-backed :class:`DataFrame`
(default).
* ``"pyarrow"``: returns pyarrow-backed nullable :class:`ArrowDtype`
DataFrame.
.. versionadded:: 2.0
Returns
-------
DataFrame
Examples
--------
>>> df = pd.read_spss("spss_data.sav") # doctest: +SKIP
�
pyreadstatzusecols must be list-like.)�usecols�apply_value_formats)�
dtype_backend)r r r � TypeError�list�read_savr �__dict__�attrsr �
no_default�convert_dtypes)�pathr �convert_categoricalsr r �df�metadatas �0C:\Python312\Lib\site-packages\pandas/io/spss.py� read_spssr s� � �H ,�L�9�J��
�&����G�$��8�9�9��w�-���&�&��t��g�CW� '� �L�B�� � � �B�H��C�N�N�*�
�
�
�]�
�
;��
�I� )
r z
str | Pathr zSequence[str] | Noner �boolr zDtypeBackend | lib.NoDefault�returnr
)�
__future__r �typingr �pandas._libsr �pandas.compat._optionalr �pandas.util._validatorsr �pandas.core.dtypes.inferencer �pandas.io.commonr �collections.abcr
�pathlibr �pandas._typingr �pandasr
r r � r r �<module>r/ sk �� "� � � >� 7� 5� +��(��+� �
%)�!%�25�.�.� 2�
�2�
!�2� �2� 0� 2�
�2r