set_axis(self, labels, axis: 'Axis' = 0, inplace: 'bool' = False)
Indexes for row labels can be changed by assigning a list-like or Index.
The values for the new index.
The axis to update. The value 0 identifies the rows.
Whether to return a new Series instance.
An object of type Series or None if inplace=True
.
Assign desired index to given axis.
Series.rename_axis
Alter the name of the index.
>>> s = pd.Series([1, 2, 3]) >>> s 0 1 1 2 2 3 dtype: int64
See :>>> s.set_axis(['a', 'b', 'c'], axis=0) a 1 b 2 c 3 dtype: int64
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