Site Navigation
Number of dimensions of the underlying data, by definition 1.
Examples
>>>s=pd.Series(['Ant','Bear','Cow'])>>>s0 Ant1 Bear2 Cowdtype: object>>>s.ndim1
For Index:
>>>idx=pd.Index([1,2,3])>>>idxIndex([1, 2, 3], dtype='int64')>>>idx.ndim1
Index.ndim