| 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/tests/io/parser/__pycache__/ |
Upload File : |
�
0 �g� � � � d Z ddlmZ ddlZddlZddlmZ ddlm Z
ej j dddgg� d� � Z
ej j di d d
iddig� d
� � Zd� Zd� Zd� Zej j dg d�� d� � Zej j dddg� d� � Zd� Zy)zf
Tests that comments are properly handled during parsing
for all of the parsers defined in parsers.py
� )�StringION)� DataFrame� na_values�NaNc �x � | }d}t g d�dt j dggg d��� }|j dk( rDd}t j
t |� � 5 |j t |� d
|�� d d d � y |j t |� d
|�� }t j ||� y # 1 sw Y y xY w)Nz&A,B,C
1,2.,4.#hello world
5.,NaN,10.0
�g �?g @� @� @� $@��A�B�C��columns�pyarrow�?The 'comment' option is not supported with the 'pyarrow' engine��match�#��commentr �r �np�nan�engine�pytest�raises�
ValueError�read_csvr �tm�assert_frame_equal)�all_parsersr �parser�data�expected�msg�results �EC:\Python312\Lib\site-packages\pandas/tests/io/parser/test_comment.py�test_commentr* s� � �
�F��D� � �3�����-�.���H� �}�}� �!�O��
�]�]�:�S�
1� N��O�O�H�T�N�C�9�O�M� N��
�_�_�X�d�^�S�I�_�
N�F����&�(�+� N��� �B0�0B9�read_kwargs�lineterminator�*�delim_whitespaceTc �: � | }d}d }d}|j d� r|j dd� }t }n2|j d� r!|j d|j d� � }d|d <