_is_lexsorted(self) -> 'bool'
Return True if the codes are lexicographically sorted.
In the below examples, the first level of the MultiIndex is sorted because a<b<c, so there is no need to look at the next level.
This example is valid syntax, but we were not able to check execution>>> pd.MultiIndex.from_arrays([['a', 'b', 'c'], ['d', 'e', 'f']]).is_lexsorted() TrueThis example is valid syntax, but we were not able to check execution
>>> pd.MultiIndex.from_arrays([['a', 'b', 'c'], ['d', 'f', 'e']]).is_lexsorted() True
In case there is a tie, the lexicographical sorting looks at the next level of the MultiIndex.
This example is valid syntax, but we were not able to check execution>>> pd.MultiIndex.from_arrays([[0, 1, 1], ['a', 'b', 'c']]).is_lexsorted() TrueThis example is valid syntax, but we were not able to check execution
>>> pd.MultiIndex.from_arrays([[0, 1, 1], ['a', 'c', 'b']]).is_lexsorted() FalseThis example is valid syntax, but we were not able to check execution
>>> pd.MultiIndex.from_arrays([['a', 'a', 'b', 'b'],This example is valid syntax, but we were not able to check execution
... ['aa', 'bb', 'aa', 'bb']]).is_lexsorted() True
>>> pd.MultiIndex.from_arrays([['a', 'a', 'b', 'b'],See :
... ['bb', 'aa', 'aa', 'bb']]).is_lexsorted() False
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