| 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 : /Python312/Lib/site-packages/pandas/tests/io/parser/common/__pycache__/ |
Upload File : |
�
0 �g# � �8 � d Z ddlmZ ddlZddlmZ dZd� Zd� Z y)zy
Tests that work on both the Python and C engines but do not have a
specific classification into the other test modules.
� )�StringIONz2The 'verbose' keyword in pd.read_csv is deprecatedc �v � | }d}|j dk( rld}t j t |�� 5 t j
t t d�� 5 |j t |� d�� d d d � d d d � y t j
t t d�� 5 |j t |� d�� d d d � |j � }|j d k( r!d
|j v sJ �d|j v sJ �y |j dk( sJ �y # 1 sw Y ��xY w# 1 sw Y y xY w# 1 sw Y �sxY w)
NzNa,b,c,d
one,1,2,3
one,1,2,3
,1,2,3
one,1,2,3
,1,2,3
,1,2,3
one,1,2,3
two,1,2,3�pyarrow�?The 'verbose' option is not supported with the 'pyarrow' engine��matchF�r �check_stacklevelT)�verbose�c�Tokenization took:�Parser memory cleanup took:zFilled 3 NA values in column a
��engine�pytest�raises�
ValueError�tm�assert_produces_warning�
FutureWarning�depr_msg�read_csvr �
readouterr�out��all_parsers�capsys�parser�data�msg�captureds �LC:\Python312\Lib\site-packages\pandas/tests/io/parser/common/test_verbose.py�test_verbose_readr# s � �
�F�
�D� �}�}� �!�O��
�]�]�:�S�
1� >��+�+��X���
>� ��������=�
>� >�
�
� #� #��X��
� 6� ��������5�6� � � �"�H�
�}�}���#�x�|�|�3�3�3�,����<�<�<��|�|�A�A�A�A�#
>�
>�� >�
��6� 6�s/ �!D#�D�/D#� D/�D �D#�#D,�/D8c �z � | }d}|j dk( rmd}t j t |�� 5 t j
t t d�� 5 |j t |� dd� � d d d � d d d � y t j
t t d�� 5 |j t |� dd� � d d d � |j � }|j d
k( r!d|j v sJ �d|j v sJ �y |j d
k( sJ �y # 1 sw Y ��xY w# 1 sw Y y xY w# 1 sw Y �sxY w)Nz\a,b,c,d
one,1,2,3
two,1,2,3
three,1,2,3
four,1,2,3
five,1,2,3
,1,2,3
seven,1,2,3
eight,1,2,3r r r Fr Tr )r � index_colr r
r zFilled 1 NA values in column a
r r s r"