pandas.Series.to_string¶
- Series.to_string(buf=None, na_rep='NaN', float_format=None, length=False, dtype=False, name=False)¶
Render a string representation of the Series
Parameters : buf : StringIO-like, optional
buffer to write to
na_rep : string, optional
string representation of NAN to use, default ‘NaN’
float_format : one-parameter function, optional
formatter function to apply to columns’ elements if they are floats default None
length : boolean, default False
Add the Series length
dtype : boolean, default False
Add the Series dtype
name : boolean, default False
Add the Series name (which may be None)
Returns : formatted : string (if not buffer passed)