pandas 1.4.2

ParametersReturns
pprint_thing(thing: 'Any', _nest_lvl: 'int' = 0, escape_chars: 'EscapeChars | None' = None, default_escapes: 'bool' = False, quote_strings: 'bool' = False, max_seq_items: 'int | None' = None) -> 'str'

Parameters

thing : anything to be formatted
_nest_lvl : internal use only. pprint_thing() is mutually-recursive

with pprint_sequence, this argument is used to keep track of the current nesting level, and limit it.

escape_chars : list or dict, optional

Characters to escape. If a dict is passed the values are the replacements

default_escapes : bool, default False

Whether the input escape characters replaces or adds to the defaults

max_seq_items : int or None, default None

Pass through to other pretty printers to limit sequence printing

Returns

str

This function is the sanctioned way of converting objects to a string representation and properly handles nested sequences.

Examples

See :

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/io/formats/printing.py#164
type: <class 'function'>
Commit: