MultiIndex.factorize()

MultiIndex.factorize(sort=False, na_sentinel=-1) [source] Encode the object as an enumerated type or categorical variable Parameters: sort : boolean, default False Sort by values na_sentinel: int, default -1 Value to mark ?not found? Returns: labels : the indexer to the original array uniques : the unique Index

MultiIndex.equal_levels()

MultiIndex.equal_levels(other) [source] Return True if the levels of both MultiIndex objects are the same

MultiIndex.equals()

MultiIndex.equals(other) [source] Determines if two MultiIndex objects have the same labeling information (the levels themselves do not necessarily have to be the same) See also equal_levels

MultiIndex.duplicated()

MultiIndex.duplicated(*args, **kwargs) [source] Return boolean np.ndarray denoting duplicate values Parameters: keep : {?first?, ?last?, False}, default ?first? first : Mark duplicates as True except for the first occurrence. last : Mark duplicates as True except for the last occurrence. False : Mark all duplicates as True. take_last : deprecated Returns: duplicated : np.ndarray

MultiIndex.dtype_str

MultiIndex.dtype_str = None

MultiIndex.dtype

MultiIndex.dtype = None

MultiIndex.drop_duplicates()

MultiIndex.drop_duplicates(*args, **kwargs) [source] Return Index with duplicate values removed Parameters: keep : {?first?, ?last?, False}, default ?first? first : Drop duplicates except for the first occurrence. last : Drop duplicates except for the last occurrence. False : Drop all duplicates. take_last : deprecated Returns: deduplicated : Index

MultiIndex.dropna()

MultiIndex.dropna(how='any') [source] Return Index without NA/NaN values Parameters: how : {?any?, ?all?}, default ?any? If the Index is a MultiIndex, drop the value when any or all levels are NaN. Returns: valid : Index

MultiIndex.droplevel()

MultiIndex.droplevel(level=0) [source] Return Index with requested level removed. If MultiIndex has only 2 levels, the result will be of Index type not MultiIndex. Parameters: level : int/level name or list thereof Returns: index : Index or MultiIndex Notes Does not check if result index is unique or not

MultiIndex.drop()

MultiIndex.drop(labels, level=None, errors='raise') [source] Make new MultiIndex with passed list of labels deleted Parameters: labels : array-like Must be a list of tuples level : int or level name, default None Returns: dropped : MultiIndex