CategoricalIndex.reshape()

CategoricalIndex.reshape(*args, **kwargs) [source] NOT IMPLEMENTED: do not call this method, as reshaping is not supported for Index objects and will raise an error. Reshape an Index.

Comparison with SQL

Since many potential pandas users have some familiarity with SQL, this page is meant to provide some examples of how various SQL operations would be performed using pandas. If you?re new to pandas, you might want to first read through 10 Minutes to pandas to familiarize yourself with the library. As is customary, we import pandas and numpy as follows: In [1]: import pandas as pd In [2]: import numpy as np Most of the examples will utilize the tips dataset found within pandas tests. We?ll rea

Panel.mask()

Panel.mask(cond, other=nan, inplace=False, axis=None, level=None, try_cast=False, raise_on_error=True) [source] Return an object of same shape as self and whose corresponding entries are from self where cond is False and otherwise are from other. Parameters: cond : boolean NDFrame, array or callable If cond is callable, it is computed on the NDFrame and should return boolean NDFrame or array. The callable must not change input NDFrame (though pandas doesn?t check it). New in version 0.18

DataFrame.size

DataFrame.size number of elements in the NDFrame

DatetimeIndex.itemsize

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

MultiIndex.shape

MultiIndex.shape return a tuple of the shape of the underlying data

TimedeltaIndex.map()

TimedeltaIndex.map(f) [source]

TimedeltaIndex.is_object()

TimedeltaIndex.is_object() [source]

DatetimeIndex.get_value()

DatetimeIndex.get_value(series, key) [source] Fast lookup of value from 1-dimensional ndarray. Only use this if you know what you?re doing

TimedeltaIndex.get_value_maybe_box()

TimedeltaIndex.get_value_maybe_box(series, key) [source]