CategoricalIndex[source]

class pandas.CategoricalIndex [source] Immutable Index implementing an ordered, sliceable set. CategoricalIndex represents a sparsely populated Index with an underlying Categorical. New in version 0.16.1. Parameters: data : array-like or Categorical, (1-dimensional) categories : optional, array-like categories for the CategoricalIndex ordered : boolean, designating if the categories are ordered copy : bool Make a copy of input ndarray name : object Name to be stored in the index

Index.shift()

Index.shift(periods=1, freq=None) [source] Shift Index containing datetime objects by input number of periods and DateOffset Returns: shifted : Index

Index.is_lexsorted_for_tuple()

Index.is_lexsorted_for_tuple(tup) [source]

Panel.to_pickle()

Panel.to_pickle(path) [source] Pickle (serialize) object to input file path. Parameters: path : string File path

DatetimeIndex.itemsize

DatetimeIndex.itemsize return the size of the dtype of the item of the underlying data

CategoricalIndex.is_monotonic

CategoricalIndex.is_monotonic alias for is_monotonic_increasing (deprecated)

MultiIndex.lexsort_depth

MultiIndex.lexsort_depth = None

CategoricalIndex.values

CategoricalIndex.values return the underlying data, which is a Categorical

TimedeltaIndex.get_values()

TimedeltaIndex.get_values() [source] return the underlying data as an ndarray

Panel.to_json()

Panel.to_json(path_or_buf=None, orient=None, date_format='epoch', double_precision=10, force_ascii=True, date_unit='ms', default_handler=None, lines=False) [source] Convert the object to a JSON string. Note NaN?s and None will be converted to null and datetime objects will be converted to UNIX timestamps. Parameters: path_or_buf : the path or buffer to write the result string if this is None, return a StringIO of the converted string orient : string Seriesdefault is ?index? allowed valu