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.
|
The basic object storing row labels for all cuDF objects. |
Properties¶
View the data as a numba device array object |
|
Return boolean if values in the object are monotonic_increasing. |
|
Return boolean if values in the object are monotonically increasing. |
|
Return boolean if values in the object are monotonically decreasing. |
|
Returns a tuple containing the name of the Index. |
|
Number of levels. |
|
Modifying and computations¶
Return whether any elements is True in Index. |
|
|
|
Check if the Index only consists of booleans. |
|
Check if the Index holds categorical data. |
|
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. |
|
|
Alter Index name. |
Return unique values in the index. |
Compatibility with MultiIndex¶
|
Set Index or MultiIndex name. |
Missing values¶
|
Fill null values with the specified value. |
Memory usage¶
|
Memory usage of the values. |
Conversion¶
|
Create an Index with values cast to dtypes. |
|
|
|
Create a Series with both index and values equal to the index keys. |
|
Create a DataFrame with a column containing this Index |
Convert to a Pandas Index. |
|
Converts a cuDF object into a DLPack tensor. |
|
|
Convert from a Pandas Index. |
|
Sorting¶
|
Return a sorted copy of the index, and optionally return the indices that sorted the index itself. |
Time-specific operations¶
Combining / joining / set operations¶
|
Append a collection of Index options together. |
|
Form the union of two Index objects. |
|
Form the intersection of two Index objects. |
|
Compute join_index and indexers to conform data structures to the new index. |
|
Return a new Index with elements from the index that are not in other. |
Selecting¶
|
Return an Index of values for requested level. |
|
|
|
Calculate slice bound that corresponds to given label. |
|
Return a boolean array where the index values are in values. |
Numeric Index¶
|
Immutable Index implementing a monotonic integer range. |
|
Immutable, ordered and sliceable sequence of labels. |
|
Immutable, ordered and sliceable sequence of labels. |
|
Immutable, ordered and sliceable sequence of labels. |
CategoricalIndex¶
|
A categorical of orderable values that represent the indices of another Column |
Categorical components¶
The category codes of this categorical. |
|
The categories of this categorical. |
Modifying and computations¶
|
Determine if two Index objects contain the same elements. |
IntervalIndex¶
|
Immutable index of intervals that are closed on the same side. |
IntervalIndex components¶
|
Construct an IntervalIndex from an array of splits. |
Return a CuPy representation of the DataFrame. |
|
|
Get integer location, slice or boolean mask for requested label. |
MultiIndex¶
|
A multi-level or hierarchical index. |
MultiIndex constructors¶
|
Convert list of tuples to MultiIndex. |
|
Make a MultiIndex from the cartesian product of multiple iterables. |
|
Make a MultiIndex from a DataFrame. |
|
Convert from PyArrow Table to Frame |
MultiIndex properties¶
Returns a tuple containing the name of the Index. |
|
Returns list of levels in the MultiIndex |
|
Returns the codes of the underlying MultiIndex. |
|
Integer number of levels in this MultiIndex. |
MultiIndex components¶
|
Create a DataFrame with a column containing this Index |
|
Removes the specified levels from the MultiIndex. |
MultiIndex selecting¶
|
Get location for a label or a tuple of labels. |
|
Return the values at the requested level |
DatetimeIndex¶
|
Immutable , ordered and sliceable sequence of datetime64 data, represented internally as int64. |
Time/date components¶
The year of the datetime. |
|
The month as January=1, December=12. |
|
The day of the datetime. |
|
The hours of the datetime. |
|
The minutes of the datetime. |
|
The seconds of the datetime. |
|
The day of the week with Monday=0, Sunday=6. |
|
The day of the year, from 1-365 in non-leap years and from 1-366 in leap years. |
|
The day of the year, from 1-365 in non-leap years and from 1-366 in leap years. |
|
The day of the week with Monday=0, Sunday=6. |
|
Boolean indicator if the date belongs to a leap year. |
|
Integer indicator for which quarter of the year the date belongs in. |
|
Returns a DataFrame with the year, week, and day calculated according to the ISO 8601 standard. |
Time-specific operations¶
|
Perform round operation on the data to the specified freq. |
|
Perform ceil operation on the data to the specified freq. |
|
Perform floor operation on the data to the specified freq. |
Conversion¶
|
Create a Series with both index and values equal to the index keys. |
|
Create a DataFrame with a column containing this Index |
TimedeltaIndex¶
|
Immutable, ordered and sliceable sequence of timedelta64 data, represented internally as int64. |
Components¶
Number of days for each element. |
|
Number of seconds (>= 0 and less than 1 day) for each element. |
|
Number of microseconds (>= 0 and less than 1 second) for each element. |
|
Number of nanoseconds (>= 0 and less than 1 microsecond) for each element. |
|
Return a dataframe of the components (days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas. |
|
Infers frequency of TimedeltaIndex. |
Conversion¶
|
Create a Series with both index and values equal to the index keys. |
|
Create a DataFrame with a column containing this Index |