| 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� � � � d Z ddlmZ ddlZddlmZ ddlmZ ej j d� Zej j dddg� d � � Z
d
� Zy)zy
Tests that work on both the Python and C engines but do not have a
specific classification into the other test modules.
� )�StringION)� DataFramez=ignore:Passing a BlockManager to DataFrame:DeprecationWarningzdata,thousands,decimal)zA|B|C
1|2,334.01|5
10|13|10.
�,�.)zA|B|C
1|2.334,01|5
10|13|10,
r r c �Z � | }t ddgddgddgd�� }|j dk( rEd }t j t |�
� 5 |j t
|� d||�� d d d � y |j t
|� d||�� }t j ||� y # 1 sw Y y xY w)
N� �
g�Q�<�@�
� g $@)�A�B�C�pyarrowzAThe 'thousands' option is not supported with the 'pyarrow' engine)�match�|)�sep� thousands�decimal) r �engine�pytest�raises�
ValueError�read_csvr �tm�assert_frame_equal)�all_parsers�datar r �parser�expected�msg�results �LC:\Python312\Lib\site-packages\pandas/tests/io/parser/common/test_decimal.py�test_1000_sep_with_decimalr# s� � �, �F���2�w�g�r�]�!�T��K�L�H�
�}�}� �!�Q��
�]�]�:�S�
1� ��O�O����C�9�g�
�
� � �
�_�_����C�9�g� � �F� ���&�(�+� � �s �B!�!B*c � � | }d}|j t |� dd�� }t g d�g d�g d�gg d�� � }t j ||� y )
Nz�Id;Number1;Number2;Text1;Text2;Number3
1;1521,1541;187101,9543;ABC;poi;4,738797819
2;121,12;14897,76;DEF;uyt;0,377320872
3;878,158;108013,434;GHI;rez;2,735694704�;r )r r )r gA�c̝ė@g� h���A�ABC�poig2�[j��@)� gH�z�G^@g{�G��@�DEF�uytg�Uq&�?)� g%��Cq�@g���^�@�GHI�rezg�)���@)�Id�Number1�Number2�Text1�Text2�Number3)�columns)r r r r r )r r r r! r s r"