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
U
­ý°d¿ã@sdZddlmZddlZddlZddlmZmZddl    m
Z ej   d¡Zeej  dddg¡d    d
„ƒƒZeej  dddg¡d d „ƒƒZd d„ZdS)zy
Tests that work on both the Python and C engines but do not have a
specific classification into the other test modules.
é)ÚStringION)Ú    DataFrameÚoption_contextZ pyarrow_xfailÚ    na_filterTFc Cs`|}d}tdtdƒtdƒgdidddd    d
d d d ddg
d}|jt|ƒd|d}t ||¡dS)NzE,A
a,inf
b,-inf
c,+Inf
d,-Inf
e,INF
f,-INF
g,+INf
h,-INf
i,inF
j,-inFÚAÚinfz-inféÚaÚbÚcÚdÚeÚfÚgÚhÚiÚj©Úindexr©Z    index_colr©rÚfloatÚread_csvrÚtmÚassert_frame_equal©Ú all_parsersrÚparserÚdataÚexpectedÚresult©r!ú]d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/io/parser/common/test_inf.pyÚtest_inf_parsings þr#cCsT|}d}tdtdƒtdƒtdƒgidddgd    }|jt|ƒd
|d }t ||¡dS) Nz&,A
a,Infinity
b,-Infinity
c,+Infinity
rZinfinityz    -infinityz    +infinityr    r
r rrrrrr!r!r"Útest_infinity_parsing+sþr$c    CsP|}d}tddƒ|jt|ƒdd}W5QRXtdtjdgƒ}t ||¡dS)Nz 1.0
NaN
3.0Z use_inf_as_naT)Úheadergð?g@)rrrrÚnpÚnanrr)rrrr rr!r!r"Ú test_read_csv_with_use_inf_as_na=s  r()Ú__doc__ÚiorÚnumpyr&ZpytestZpandasrrZpandas._testingZ_testingrÚmarkZ usefixturesZ xfail_pyarrowZ parametrizer#r$r(r!r!r!r"Ú<module>s