pandas 1.4.2

Parameters
_drop_axis(self: 'NDFrameT', labels, axis, level=None, errors: 'str' = 'raise', consolidate: 'bool_t' = True, only_slice: 'bool_t' = False) -> 'NDFrameT'

Parameters

labels : single label or list-like
axis : int or axis name
level : int or level name, default None

For MultiIndex

errors : {'ignore', 'raise'}, default 'raise'

If 'ignore', suppress error and existing labels are dropped.

consolidate : bool, default True

Whether to call consolidate_inplace in the reindex_indexer call.

only_slice : bool, default False

Whether indexing along columns should be view-only.

Drop labels from specified axis. Used in the drop method internally.

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#4274
type: <class 'function'>
Commit: