Index¶
Constructor
|
Properties
Return an array representing the data in the Index. |
|
Return a boolean if the values are equal or increasing. |
|
Return a boolean if the values are equal or decreasing. |
|
Return if the index has unique values. |
|
Check if the Index has duplicate values. |
|
Return True if there are any NaNs. |
|
Get the dtype object of the underlying data. |
|
Get a tuple of the shape of the underlying data. |
|
Get the index name. |
|
Get names of index |
|
Number of dimensions of the underlying data, by definition 1. |
|
Get the number of elements in the underlying data. |
|
Whether the index is empty. |
|
Return the transpose, which is by definition self. |
|
Number of levels. |
Snowflake Specific
|
Convert Snowpark pandas Index to pandas Index. |
Modifying and computations
|
Return whether all elements are Truthy. |
|
Return whether any element is Truthy. |
|
Return int position of the smallest value in the Series. |
|
Return int position of the largest value in the Series. |
|
Make a copy of this object. |
Make new Index with passed location(-s) deleted. |
|
|
Make new Index with the passed list of labels deleted. |
Return Index with duplicate values removed. |
|
|
Indicate duplicate index values. |
|
Determine if two Index objects are equal. |
Similar to equals, but checks that object attributes and types are also equal. |
|
Make new Index inserting new item at location. |
|
Check if the Index only consists of booleans. |
|
Check if the Index is a floating type. |
|
Check if the Index only consists of integers. |
|
Check if the Index holds Interval objects. |
|
Check if the Index only consists of numeric data. |
|
Check if the Index is of the object dtype. |
|
Return the first element of the underlying data as a Python scalar. |
|
Return the minimum value of the Index. |
|
Return the maximum value of the Index. |
|
|
Create index with target's values. |
Alter Index or MultiIndex name. |
|
|
Return unique values in the index. |
|
Return number of unique elements in the object. |
|
Return a Series containing counts of unique values. |
return the array of values |
|
Vectorized string functions for Series and Index. |
Compatibility with MultiIndex
|
Set Index 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. |
Return the first element of the underlying data as a Python scalar. |
|
Return a list of the values. |
|
Return a list of the values. |
|
|
Create a Series with both index and values equal to the index keys. |
|
Create a |
Sorting
|
Return a sorted copy of the index. |
Combining / joining / set operations
Append a collection of Index options together. |
|
Compute join_index and indexers to conform data structures to the new index. |
|
|
Form the intersection of two Index objects. |
|
Form the union of two Index objects. |
|
Return a new Index with elements of index not in other. |
Selecting
|
Guaranteed return of an indexer even when non-unique. |
|
Return an Index of values for requested level. |
Return a boolean array where the index values are in values. |
|
|
Compute the slice indexer for input labels and step. |