
    I jV                        S r SSKJr  SSKrSSKrSSKJr  SSKJ	r
  \R                  R                  S5      r\R                  R                  S5      r\S 5       rS r\R                  R%                  S	S
SSSSSSSSSS\R&                  4S\R&                  * 4S\R&                  4S\R&                  4S\R&                  4S\R&                  4S\R&                  * 4/5      S 5       r\R                  R%                  S	SSSSS S!\" S"5      4S#\" S"5      4S$\" S%5      4/5      S& 5       r\R                  R%                  S'/ S(Q5      S) 5       rg)*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:DeprecationWarningpyarrow_skipc                     U nSnUR                  [        U5      S S9n[        UR                  S5       Vs/ s H  n[	        U5      PM     sn/5      n[
        R                  " X55        g s  snf )Nz45e-1,4.5,45.,inf,-inf)header,)read_csvr   r   splitfloattmassert_frame_equal)all_parsersparserdataresultsexpecteds         y/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/pandas/tests/io/parser/common/test_float.pytest_float_parserr      s_     F#D__Xd^D_9FTZZ_=_58_=>?H&+ >s   A*c                     [         R                  " S/S/S/S/S.5      nUR                  SS9nU u  p4UR                  [	        U5      US9n[
        R                  " XQ5        g )	N2e3E42e632E)wxyzF)indexfloat_precision)r   	from_dictto_csvr	   r   r   r   )all_parsers_all_precisionsdfr   r   	precisiondf_roundtrips         r   test_scientific_no_exponentr(      s_    			D6eWF8T	UB9959!D2F??8D>9?ML,+    zvalue, expected_value)z0E-617        )
0E99999999r*   )z-0E99999999r*   )z-0E-99999999r*   )z10E-617r*   )z
10E-100000r*   )z-10E-100000r*   )z10e-99999999999r*   )z10e-999999999999r*   )z10e-9999999999999r*   10E999z-10e9999999999910e9999999999910e99999999999910e999999999999950060e8007123400z-50060e8007123400c                     U u  p4SU 3nUR                  [        U5      US9n[        SU/05      n[        R                  " Xg5        g )Nzdata
r    r   r	   r   r   r   r   )r$   valueexpected_valuer   r&   r   r   r   s           r   test_large_exponentr5   )   sN    0 3FE7D__Xd^Y_GF&>"234H&+r)   )z32.0      @@)32e0r6   )z3.2e1r6   )z3.2e80g/'%P)z3.2e-80g8hZn/z18446744073709551616.0l            z18446744073709551616.5z36893488147419103232.3l             c                     U u  pESU 3nUR                  [        U5      US9n[        SSU/05      n[        R                  " Xx5        g )Nzdata
    42
    r    r   g      E@r2   )	r$   r3   r4   requestr   r&   r   r   r   s	            r    test_small_int_followed_by_floatr:   I   sW    " 3F
GD __Xd^Y_GF&4"89:H&+r)   r3   )81e31d04049863b72d81e31d04049863b7281e3104049863b72c                     U u  p#SU S3nUR                  [        U5      US9n[        S/U/SS.5      n[        R                  " XV5        g )Nzh1,h2,h3
data1,z,data3r    data1data3)h1h2h3r2   )r$   r3   r   r&   r   r   r   s          r   test_invalid_float_numberrD   d   sS    
 3FeWF+D__Xd^Y_GF	%HIH&+r)   )__doc__ior   numpynppytestpandasr   pandas._testing_testingr   markfilterwarnings
pytestmarkusefixturesskip_pyarrowr   r(   parametrizeinfr5   r   r:   rD    r)   r   <module>rU      s  
     [[''C
 {{&&~6 , ,,  !"	266	RVVG$	266"	BFF#	RVV$	RVV$	rvvg&#,,-,, 	!5>2	!5>2	!5>2	,, L,,r)   