pandas 1.4.2

ParametersReturns
_is_label_reference(self, key, axis=0) -> 'bool_t'

To be considered a label reference, :None:None:`key` must be a string that:

  • (axis=0): Matches a column label

  • (axis=1): Matches an index label

Parameters

key : str

Potential label name

axis : int, default 0

Axis perpendicular to the axis that labels are associated with (0 means search for column labels, 1 means search for index labels)

Returns

is_label: bool

Test whether a key is a label reference for a given axis.

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/core/generic.py#1697
type: <class 'function'>
Commit: