Series.shift()

Series.shift(periods=1, freq=None, axis=0) [source] Shift index by desired number of periods with an optional time freq Parameters: periods : int Number of periods to move, can be positive or negative freq : DateOffset, timedelta, or time rule string, optional Increment to use from the tseries module or time rule (e.g. ?EOM?). See Notes. axis : {0, ?index?} Returns: shifted : Series Notes If freq is specified then the index values are shifted but the data is not realigned. That is,

DataFrame.align()

DataFrame.align(other, join='outer', axis=None, level=None, copy=True, fill_value=None, method=None, limit=None, fill_axis=0, broadcast_axis=None) [source] Align two object on their axes with the specified join method for each axis Index Parameters: other : DataFrame or Series join : {?outer?, ?inner?, ?left?, ?right?}, default ?outer? axis : allowed axis of the other object, default None Align on index (0), columns (1), or both (None) level : int or level name, default None Broadcast a

DataFrame.count()

DataFrame.count(axis=0, level=None, numeric_only=False) [source] Return Series with number of non-NA/null observations over requested axis. Works with non-floating point data as well (detects NaN and None) Parameters: axis : {0 or ?index?, 1 or ?columns?}, default 0 0 or ?index? for row-wise, 1 or ?columns? for column-wise level : int or level name, default None If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a DataFrame numeric_only : boolea

Panel4D.major_xs()

Panel4D.major_xs(key) [source] Return slice of panel along major axis Parameters: key : object Major axis label Returns: y : DataFrame index -> minor axis, columns -> items Notes major_xs is only for getting, not setting values. MultiIndex Slicers is a generic way to get/set values on any level or levels and is a superset of major_xs functionality, see MultiIndex Slicers

Panel4D.minor_xs()

Panel4D.minor_xs(key) [source] Return slice of panel along minor axis Parameters: key : object Minor axis label Returns: y : DataFrame index -> major axis, columns -> items Notes minor_xs is only for getting, not setting values. MultiIndex Slicers is a generic way to get/set values on any level or levels and is a superset of minor_xs functionality, see MultiIndex Slicers

Panel.get_dtype_counts()

Panel.get_dtype_counts() [source] Return the counts of dtypes in this object.

DataFrame.to_period()

DataFrame.to_period(freq=None, axis=0, copy=True) [source] Convert DataFrame from DatetimeIndex to PeriodIndex with desired frequency (inferred from index if not passed) Parameters: freq : string, default axis : {0 or ?index?, 1 or ?columns?}, default 0 The axis to convert (the index by default) copy : boolean, default True If False then underlying input data is not copied Returns: ts : TimeSeries with PeriodIndex

Series.ndim

Series.ndim return the number of dimensions of the underlying data, by definition 1

Series.rsub()

Series.rsub(other, level=None, fill_value=None, axis=0) [source] Subtraction of series and other, element-wise (binary operator rsub). Equivalent to other - series, but with support to substitute a fill_value for missing data in one of the inputs. Parameters: other: Series or scalar value fill_value : None or float value, default None (NaN) Fill missing (NaN) values with this value. If both Series are missing, the result will be missing level : int or name Broadcast across a level, matc

Panel.clip_upper()

Panel.clip_upper(threshold, axis=None) [source] Return copy of input with values above given value(s) truncated. Parameters: threshold : float or array_like axis : int or string axis name, optional Align object with threshold along the given axis. Returns: clipped : same type as input See also clip