Index objects#
Index#
| 
 | pandas-on-Spark Index that corresponds to pandas Index logically. | 
Properties#
| Return boolean if values in the object are monotonically increasing. | |
| Return boolean if values in the object are monotonically decreasing. | |
| Return if the index has unique values. | |
| If index has duplicates, return True, otherwise False. | |
| Return True if it has any missing values. | |
| 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 name of the Index. | |
| Return names of the Index. | |
| Return an int representing the number of array dimensions. | |
| Return an int representing the number of elements in this object. | |
| Number of levels in Index & MultiIndex. | |
| Returns true if the current object is empty. | |
| Return the transpose, For index, It will be index itself. | |
| Return an array representing the data in the Index. | 
Modifying and computations#
| 
 | Return whether all elements are True. | 
| 
 | Return whether any element is True. | 
| Return a minimum argument indexer. | |
| Return a maximum argument indexer. | |
| 
 | Make a copy of this object. | 
| 
 | Make new Index with passed location(-s) deleted. | 
| 
 | Determine if two Index objects contain the same elements. | 
| 
 | Encode the object as an enumerated type or categorical variable. | 
| 
 | Similar to equals, but check that other comparable attributes are also equal. | 
| 
 | Make new Index inserting new item at location. | 
| Return if the current index type is a boolean type. | |
| Return if the current index type is a categorical type. | |
| Return if the current index type is a floating type. | |
| Return if the current index type is an integer type. | |
| Return if the current index type is an interval type. | |
| Return if the current index type is a numeric type. | |
| Return if the current index type is an object type. | |
| 
 | Make new Index with passed list of labels deleted. | 
| 
 | Return Index with duplicate values removed. | 
| Return the minimum value of the Index. | |
| Return the maximum value of the Index. | |
| 
 | Map values using input correspondence (a dict, Series, or function). | 
| 
 | Alter Index or MultiIndex name. | 
| 
 | Repeat elements of a Index/MultiIndex. | 
| 
 | Return the elements in the given positional indices along an axis. | 
| 
 | 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 or MultiIndex name. | 
| 
 | Return index with requested level(s) removed. | 
Missing Values#
| 
 | Fill NA/NaN values with the specified value. | 
| 
 | Return Index or MultiIndex without NA/NaN values | 
| Detect existing (non-missing) values. | |
| Detect existing (non-missing) values. | |
| Detect existing (non-missing) values. | |
| Detect existing (non-missing) values. | 
Conversion#
| 
 | Cast a pandas-on-Spark object to a specified dtype  | 
| Return the first element of the underlying data as a python scalar. | |
| Return a list of the values. | |
| 
 | Create a Series with both index and values equal to the index keys useful with map for returning an indexer based on an index. | 
| 
 | Create a DataFrame with a column containing the Index. | 
| this is defined as a copy with the same identity | |
| 
 | A NumPy ndarray representing the values in this Index or MultiIndex. | 
CategoricalIndex#
| 
 | Index based on an underlying Categorical. | 
Categorical components#
| The category codes of this categorical. | |
| The categories of this categorical. | |
| Whether the categories have an ordered relationship. | |
| Rename categories. | |
| 
 | Reorder categories as specified in new_categories. | 
| 
 | Add new categories. | 
| 
 | Remove the specified categories. | 
| Remove categories which are not used. | |
| 
 | Set the categories to the specified new_categories. | 
| Set the Categorical to be ordered. | |
| Set the Categorical to be unordered. | |
| 
 | Map values using input correspondence (a dict, Series, or function). | 
| 
 | Determine if two Index objects contain the same elements. | 
| Return the maximum value of the Index. | |
| Return the minimum value of the Index. | |
| Return a list of the values. | 
MultiIndex#
| 
 | pandas-on-Spark MultiIndex that corresponds to pandas MultiIndex logically. | 
MultiIndex Constructors#
| 
 | Convert arrays to MultiIndex. | 
| 
 | Convert list of tuples to MultiIndex. | 
| 
 | Make a MultiIndex from the cartesian product of multiple iterables. | 
| 
 | Make a MultiIndex from a DataFrame. | 
MultiIndex Properties#
| If index has duplicates, return True, otherwise False. | |
| Return True if it has any missing values. | |
| Return a string of the type inferred from the values. | |
| Return a tuple of the shape of the underlying data. | |
| Return names of the Index. | |
| Return an int representing the number of array dimensions. | |
| Returns true if the current object is empty. | |
| Return the transpose, For index, It will be index itself. | |
| Return an int representing the number of elements in this object. | |
| Number of levels in Index & MultiIndex. | |
| A tuple with the length of each level. | |
| Return an array representing the data in the Index. | |
| Return the dtypes as a Series for the underlying MultiIndex. | 
MultiIndex components#
| 
 | Swap level i with level j. | 
MultiIndex components#
| 
 | Return index with requested level(s) removed. | 
MultiIndex Missing Values#
| 
 | Fill NA/NaN values with the specified value. | 
| 
 | Return Index or MultiIndex without NA/NaN values | 
MultiIndex Modifying and computations#
| 
 | Determine if two Index objects contain the same elements. | 
| 
 | Return True if the levels of both MultiIndex objects are the same | 
| 
 | Similar to equals, but check that other comparable attributes are also equal. | 
| 
 | Make new MultiIndex inserting new item at location. | 
| 
 | Make new MultiIndex with passed list of labels deleted | 
| 
 | Make a copy of this object. | 
| 
 | Make new Index with passed location(-s) deleted. | 
| 
 | Alter Index or MultiIndex name. | 
| 
 | Repeat elements of a Index/MultiIndex. | 
| 
 | Return the elements in the given positional indices along an axis. | 
| 
 | Return unique values in the index. | 
| Return the minimum value of the Index. | |
| Return the maximum value of the Index. | |
| 
 | Return a Series containing counts of unique values. | 
MultiIndex Combining / joining / set operations#
| 
 | Append a collection of Index options together. | 
| 
 | Form the intersection of two Index objects. | 
| 
 | Form the union of two Index objects. | 
| 
 | Return a new Index with elements from the index that are not in other. | 
| 
 | Compute the symmetric difference of two MultiIndex objects. | 
MultiIndex Conversion#
| 
 | Cast a pandas-on-Spark object to a specified dtype  | 
| Return the first element of the underlying data as a python tuple. | |
| Return a list of the values. | |
| 
 | Create a Series with both index and values equal to the index keys useful with map for returning an indexer based on an index. | 
| 
 | Create a DataFrame with the levels of the MultiIndex as columns. | 
| this is defined as a copy with the same identity | |
| 
 | A NumPy ndarray representing the values in this Index or MultiIndex. | 
DatatimeIndex#
| 
 | Immutable ndarray-like of datetime64 data. | 
Time/date components#
| The year of the datetime. | |
| The month of the timestamp as January = 1 December = 12. | |
| The days of the datetime. | |
| The hours of the datetime. | |
| The minutes of the datetime. | |
| The seconds of the datetime. | |
| The microseconds of the datetime. | |
| Calculate year, week, and day according to the ISO 8601 standard. | |
| 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 ordinal day of the year. | |
| The ordinal day of the year. | |
| The quarter of the date. | |
| 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. | |
| The number of days in the month. | |
| The number of days in the month. | 
Selecting#
| 
 | Return index locations of values between particular times of day (example: 9:00-9:30AM). | 
| 
 | Return index locations of values at particular time of day (example: 9:30AM). | 
Time-specific operations#
| Convert times to midnight. | |
| 
 | Convert to a string Index using specified date_format. | 
| 
 | 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 of the DatetimeIndex with specified locale. | 
| 
 | Return the day names of the series with specified locale. | 
TimedeltaIndex#
| 
 | Immutable ndarray-like of timedelta64 data, represented internally as int64, and which can be boxed to timedelta objects. | 
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. |