len(self)
The element may be a sequence (such as a string, tuple or list) or a collection (such as a dictionary).
A Series or Index of integer values indicating the length of each element in the Series or Index.
Compute the length of each element in the Series/Index.
Series.size
Returns the length of the Series.
str.len
Python built-in function returning the length of an object.
Returns the length (number of characters) in a string. Returns the number of entries for dictionaries, lists or tuples.
This example is valid syntax, but we were not able to check execution>>> s = pd.Series(['dog',This example is valid syntax, but we were not able to check execution
... '',
... 5,
... {'foo' : 'bar'},
... [2, 3, 5, 7],
... ('one', 'two', 'three')])
... s 0 dog 1 2 5 3 {'foo': 'bar'} 4 [2, 3, 5, 7] 5 (one, two, three) dtype: object
>>> s.str.len() 0 3.0 1 0.0 2 NaN 3 1.0 4 4.0 5 3.0 dtype: float64See :
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