Index objects#
Index#
Many of these methods or variants thereof are available on the objects that contain an index (Series/DataFrame) and those should most likely be used before calling these methods directly.
|
Immutable sequence used for indexing and alignment. |
Properties#
Return an array representing the data in the Index. |
|
Alias for is_monotonic_increasing. |
|
Return a boolean if the values are equal or increasing. |
|
Return a boolean if the values are equal or decreasing. |
|
Return the dtype object of the underlying data. |
|
Return a string of the type inferred from the values. |
|
Return a tuple of the shape of the underlying data. |
|
Return Index or MultiIndex name. |
|
Number of dimensions of the underlying data, by definition 1. |
|
Return the number of elements in the underlying data. |
|
Return the transpose, which is by definition self. |
|
|
Memory usage of the values. |
Modifying and computations#
Return whether all elements are Truthy. |
|
Return whether any element is Truthy. |
|
Make a copy of this object. |
|
|
Make new Index with passed list of labels deleted. |
|
Return Index with duplicate values removed. |
|
Indicate duplicate index values. |
|
Return the minimum value of the Index. |
|
Return the maximum value of the Index. |
|
Alter Index or MultiIndex name. |
|
Return a Series containing counts of unique values. |
Compatibility with MultiIndex#
|
Set Index or MultiIndex name. |
Missing values#
|
Fill NA/NaN values with the specified value. |
|
Return Index without NA/NaN values. |
Detect missing values. |
|
Detect existing (non-missing) values. |
Conversion#
|
Create an Index with values cast to dtypes. |
|
Map values using an input mapping or function. |
|
Create a Series with both index and values equal to the index keys. |
|
Create a DataFrame with a column containing the Index. |