pandas 1.4.2

ParametersReturns
format_array(values: 'Any', formatter: 'Callable | None', float_format: 'FloatFormatType | None' = None, na_rep: 'str' = 'NaN', digits: 'int | None' = None, space: 'str | int | None' = None, justify: 'str' = 'right', decimal: 'str' = '.', leading_space: 'bool | None' = True, quoting: 'int | None' = None) -> 'list[str]'

Parameters

values :
formatter :
float_format :
na_rep :
digits :
space :
justify :
decimal :
leading_space : bool, optional, default True

Whether the array should be formatted with a leading space. When an array as a column of a Series or DataFrame, we do want the leading space to pad between columns.

When formatting an Index subclass (e.g. IntervalIndex._format_native_types), we don't want the leading space since it should be left-aligned.

Returns

List[str]

Format an array for printing.

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/format.py#1240
type: <class 'function'>
Commit: