+
    xȇi{                     n    ^ RI H t  ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t ^ RIHt  ! R R4      tR# )    )datetime)StringION)Series)
get_handlec                     a  ] tR t^t o R tR tR tR tR tR t	R t
]P                  P                  R]! . RO. ROR	R
7      R3]! . ROR	R7      R3]! . RORR7      R3]! . RORR7      R3.4      R 4       tR tRtV tR# )TestSeriesToCSVc                    R ^ RR/pVP                   ! R/ VB  VP                  R4      p\        P                  ! V3/ VB P	                  R4      pVf   R;Vn        VP                  n        V# )	index_colheaderNcolumns )updategetpdread_csvsqueezenameindex)selfpathkwargsparamsr   outs   &&,   w/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/series/methods/test_to_csv.pyr   TestSeriesToCSV.read_csv   sg    q(D1H%kk$)&)11)<>(,,CHsyy~
    c           	        VP                   P                  R 4      Vn         TpVP                  VRR7       V P                  VRR7      pVP	                  4       pVP                   P                  R4      Vn         \        P                  ! WeRR7       VP                  e   Q hVP                   P                  e   Q hVP                  VRR7       V P                  V^ R7      pVP                  R8X  g   Q hVP                  VRR7       V P                  V4      p\        P                  ! W(RR7       VP                  e   Q hVP                   P                  e   Q hVP                  VRR7       V P                  V^ R7      p	V	P                  R8X  g   Q h\        VR	R
R7      ;_uu_ 4       p
V
P                  R4       R R R 4       V P                  VRRR7      p\        \        R^^4      R\        R^^4      R/4      p\        P                  ! W4       V P                  VRRR7      p\        RRRR/4      p\        P                  ! W4       R #   + '       g   i     L; i)NFr   T)parse_datesus)check_namestsserieswutf-8)encodingz1998-01-01|1.0
1999-01-01|2.0|)sepr   i  g      ?i  g       @z
1998-01-01z
1999-01-01)r   
_with_freqto_csvr   copyas_unittmassert_series_equalr   openwriter   r   )r   datetime_seriesstring_series	temp_filer   r"   expectedts_hr#   series_houtfilecheck_seriess   &&&&        r   test_from_csvTestSeriesToCSV.test_from_csv   s    / 5 5 @ @ FtE2]]4T]2"'')!//5
x?wwxx}}$$$ 	tD1}}T!},yyD   T%0t$
}%H{{"""||  (((T$/==a=0}}((($g..'MM:; / t$?xa3S(4A:NPSTU
|4t%@|S,DE
|4 /.s   )II	c                d   VP                  VR R7       \        VRRR7      ;_uu_ 4       pVP                  4       pRRR4       X^,          R8w  g   Q hVP                  VR R R7       \        P                  ! V4      p\
        P                  ! WQP                  4       R#   + '       g   i     Ll; i)Fr   Nr%   )newliner&   
)r   r   )r*   r/   	readlinesnploadtxtr-   assert_almost_equalvalues)r   r1   r3   flinesarrs   &&&   r   test_to_csvTestSeriesToCSV.test_to_csvD   s    y7)TG<<KKME =Qx4yeDjj#
s$:$:; =<s   BB/	c                    \        4       p\        R R.R R.R7      pVP                  VRRR7       VP                  ^ 4       V P	                  V^ RR7      p\
        P                  ! W#4       R# )	u   אd2u   בr   zUTF-8Fr&   r   r
   r&   N)r   r   r*   seekr   r-   r.   )r   bufss2s   &   r   test_to_csv_unicode_index)TestSeriesToCSV.test_to_csv_unicode_indexO   s^    jHd#Hh+?@	wu5]]3!g]>
q%r   c                    \        . RO4      pVP                  VRRR7       V P                  V4      p\        . RO4      p\        P                  ! W44       R# )翶~Ϛ?z%.2fF)float_formatr   NrT   g9DܜJ?g>D)?)gQ?gq=
ףp?g=
ףp=?)r   r*   r   r-   r.   )r   r3   serrsxps   &&   r   test_to_csv_float_format(TestSeriesToCSV.test_to_csv_float_formatY   sF    34

96%
@]]9%&'
r&r   c                    \        R R.4      pVP                  P                  R4      p\        4       pVP	                  VRR7       R# )zjack and jillzjesse and frankz	\s+and\s+Fr   N)r   strsplitr   r*   )r   rO   r^   rN   s   &   r   test_to_csv_list_entries(TestSeriesToCSV.test_to_csv_list_entriesa   s;    O%678L)jS'r   c                v    \        . RO4      pVP                  RRR7      p\        V\        4      '       g   Q hR# )   NF)path_or_bufr   )rb         )r   r*   
isinstancer]   )r   rO   csv_strs   &  r   test_to_csv_path_is_none(TestSeriesToCSV.test_to_csv_path_is_nonei   s3     9((tE(:'3''''r   z
s,encodingX)r   r   N)r   asciiu   中文gb2312u   Ελληνικάcp737c                   TpVP                  WSVR R7       \        P                  ! VVV^ R7      P                  R4      p\        P
                  ! W4       \        VRW2R7      ;_uu_ 4       pVP                  VP                  VR R7       RRR4       \        P                  ! VVV^ R7      P                  R4      p\        P
                  ! W4       \        P                  ! WS4      ;_uu_ 4       pVP                  4       P                  T;'       g    R4      p	VP                  V	9   g   Q h RRR4       \        P                  ! WS4      ;_uu_ 4       p\        P
                  ! V\        P                  ! V^ VR	7      P                  R4      4       RRR4       R#   + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)
T)compressionr&   r   )ro   r&   r
   r   r$   )ro   r&   rK   Nutf8rL   )r*   r   r   r   r-   r.   r   handledecompress_filereaddecoder   )
r   rO   r&   ro   r3   filenameresulthandlesfhtexts
   &&&&&     r   test_to_csv_compression'TestSeriesToCSV.test_to_csv_compressionq   sy   " 	XdS#	

 ')
 	 	q) c{
 
HHW^^htHD

 #	

 ')
 	 	q) 66"779##H$6$67D66T>!> 7 66"""B!h?GG	R 76%
 
 
 76 766s$   ,F0=F0>GF-	0G 	G	c                
   \        . RO\        P                  ! ^ ^4      R7      pVP                  VRR7       V P	                  V^ R7      pTpVP
                  P                  R4      Vn        \        P                  ! WE4       R# )foorJ   Fr   )r
   r]   N)r}   barbaz)	r   r   interval_ranger*   r   r   astyper-   r.   )r   using_infer_stringr3   rO   rv   r4   s   &&&   r   test_to_csv_interval_index*TestSeriesToCSV.test_to_csv_interval_index   si    (0A0A!Q0GH	5)yA6 !..u5
v0r   r   rV   )ABC)abcdefghi)123u   你好u   世界)r   u   Γειά σουu
   Κόσμε)__name__
__module____qualname____firstlineno__r   r9   rF   rQ   rZ   r_   rh   pytestmarkparametrizer   rz   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     
'5R	<&'(( [[ 5_SVW
 )4g>/h?J?FXY	
 #! #J
1 
1r   r   )r   ior   numpyr?   r   pandasr   r   pandas._testing_testingr-   pandas.io.commonr   r   r   r   r   <module>r      s)           'b1 b1r   