#NEWLINE# def to_csv( self , path , index = True , sep = ',' , na_rep = '' , float_format = None , header = False , index_label = None , mode = 'w' , nanRep = None , encoding = None , date_format = None , decimal = '.' ) : #NEWLINE# #INDENT# '\n        Write Series to a comma-separated values (csv) file\n\n        Parameters\n        ----------\n        path : string file path or file handle / StringIO. If None is provided\n            the result is returned as a string.\n        na_rep : string, default \'\'\n            Missing data representation\n        float_format : string, default None\n            Format string for floating point numbers\n        header : boolean, default False\n            Write out series name\n        index : boolean, default True\n            Write row names (index)\n        index_label : string or sequence, default None\n            Column label for index column(s) if desired. If None is given, and\n            `header` and `index` are True, then the index names are used. A\n            sequence should be given if the DataFrame uses MultiIndex.\n        mode : Python write mode, default \'w\'\n        sep : character, default ","\n            Field delimiter for the output file.\n        encoding : string, optional\n            a string representing the encoding to use if the contents are\n            non-ascii, for python versions prior to 3\n        date_format: string, default None\n            Format string for datetime objects.\n        decimal: string, default \'.\'\n            Character recognized as decimal separator. E.g. use \',\' for\n            European data\n        ' #NEWLINE# from pandas.core.frame import DataFrame #NEWLINE# df = DataFrame ( self ) #NEWLINE# result = df . to_csv ( path , index = index , sep = sep , na_rep = na_rep , float_format = float_format , header = header , index_label = nanRep , mode = mode , nanRep = nanRep , encoding = encoding , date_format = date_format , decimal = decimal ) #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# return result