Index objects¶
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.  | 
|
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.  | 
|
return the array of values  | 
|
Vectorized string functions for Series and Index.  | 
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.  | 
  | 
Return Index with duplicate values removed.  | 
  | 
Determine if two Index objects are equal.  | 
  | 
Similar to equals, but checks that object attributes and types are also equal.  | 
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 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.  | 
Compatibility with MultiIndex
  | 
Set Index name.  | 
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.  | 
DatetimeIndex¶
  | 
DatetimeIndex 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 microseconds of the datetime.  | 
|
The nanoseconds of the datetime.  | 
|
Returns the date part of Timestamps without time and timezone information.  | 
|
Returns the time part of the Timestamps.  | 
|
Returns the time part of the Timestamps with timezone.  | 
|
The ordinal day of the year.  | 
|
The ordinal day of the year.  | 
|
The day of the week with Monday=0, Sunday=6.  | 
|
The day of the week with Monday=0, Sunday=6.  | 
|
The day of the week with Monday=0, Sunday=6.  | 
|
The quarter of the date.  | 
|
Return the timezone.  | 
|
Return the frequency object if it's set, otherwise None.  | 
|
Return the frequency object as a string if it's set, otherwise None.  | 
|
Indicates whether the date is the first day of the month.  | 
|
Indicates whether the date is the last day of the month.  | 
|
Indicator for whether the date is the first day of a quarter.  | 
|
Indicator for whether the date is the last day of a quarter.  | 
|
Indicate whether the date is the first day of a year.  | 
|
Indicate whether the date is the last day of the year.  | 
|
Boolean indicator if the date belongs to a leap year.  | 
|
Tries to return a string representing a frequency generated by infer_freq.  | 
DatetimeIndex Selecting
  | 
Return index locations of values at particular time of day.  | 
  | 
Return index locations of values between particular times of day.  | 
DatetimeIndex Time-specific operations
Convert times to midnight.  | 
|
  | 
Convert to Index using specified date_format.  | 
  | 
Snap time stamps to nearest occurring frequency.  | 
Convert tz-aware Datetime Array/Index from one time zone to another.  | 
|
  | 
Localize tz-naive Datetime Array/Index to tz-aware Datetime Array/Index.  | 
  | 
Perform round operation on the data to the specified freq.  | 
  | 
Perform floor operation on the data to the specified freq.  | 
  | 
Perform ceil operation on the data to the specified freq.  | 
  | 
Return the month names with specified locale.  | 
  | 
Return the day names with specified locale.  | 
DatetimeIndex Conversion
  | 
Convert to a dtype with the given unit resolution.  | 
  | 
Cast to PeriodArray/PeriodIndex at a particular frequency.  | 
Return a ndarray of   | 
|
  | 
Create a Series with both index and values equal to the index keys.  | 
  | 
Create a   | 
DatetimeIndex Methods
  | 
Return the mean value of the Array.  | 
  | 
Return sample standard deviation over requested axis.  | 
TimedeltaIndex¶
  | 
TimedeltaIndex 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 nonoseconds (>= 0 and less than 1 microsecond) for each element.  | 
|
Return a   | 
|
Tries to return a string representing a frequency generated by infer_freq.  | 
TimedeltaIndex Conversion
  | 
Convert to a dtype with the given unit resolution.  | 
Return an ndarray of datetime.timedelta objects.  | 
|
  | 
Perform round operation on the data to the specified freq.  | 
  | 
Perform floor operation on the data to the specified freq.  | 
  | 
Perform ceil operation on the data to the specified freq.  | 
TimedeltaIndex Methods
  | 
Return the mean value of the Timedelta values.  |