pandas 1.4.2

ParametersReturnsBackRef
to_string(self, buf=None, na_rep='NaN', float_format=None, header=True, index=True, length=False, dtype=False, name=False, max_rows=None, min_rows=None)

Parameters

buf : StringIO-like, optional

Buffer to write to.

na_rep : str, 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.

header : bool, default True

Add the Series header (index name).

index : bool, optional

Add index (row) labels, default True.

length : bool, default False

Add the Series length.

dtype : bool, default False

Add the Series dtype.

name : bool, default False

Add the Series name if not None.

max_rows : int, optional

Maximum number of rows to show before truncating. If None, show all.

min_rows : int, optional

The number of rows to display in a truncated repr (when number of rows is above :None:None:`max_rows`).

Returns

str or None

String representation of Series if buf=None , otherwise None.

Render a string representation of the Series.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.io.formats.format.get_series_repr_params

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/series.py#1506
type: <class 'function'>
Commit: