@@ -2538,16 +2538,17 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,
2538
2538
2539
2539
return result
2540
2540
2541
- def to_csv (self , path , index = True , sep = "," , na_rep = '' , float_format = None ,
2542
- header = False , index_label = None , mode = 'w' , encoding = None ,
2543
- date_format = None , decimal = '.' ):
2541
+ def to_csv (self , path = None , index = True , sep = "," , na_rep = '' ,
2542
+ float_format = None , header = False , index_label = None ,
2543
+ mode = 'w' , encoding = None , date_format = None , decimal = '.' ):
2544
2544
"""
2545
2545
Write Series to a comma-separated values (csv) file
2546
2546
2547
2547
Parameters
2548
2548
----------
2549
- path : string file path or file handle / StringIO. If None is provided
2550
- the result is returned as a string.
2549
+ path : string or file handle, default None
2550
+ File path or object, if None is provided the result is returned as
2551
+ a string.
2551
2552
na_rep : string, default ''
2552
2553
Missing data representation
2553
2554
float_format : string, default None
0 commit comments