38
pandas: powerful Python data analysis toolkit, Release 0.18.1
Parameters cond: boolean NDFrame,array orcallable
If cond is callable, it is computed on the NDFrame and should return boolean
NDFrame orarray. The callable must not change input NDFrame (thoughpandas
doesn’t check it).
New in version 0.18.1.
Acallable can be used as cond.
other : scalar, NDFrame, or callable
If other is callable, it is computed on the NDFrame and should return scalar or
NDFrame. The callable must not change inputNDFrame (though pandas doesn’t
check it).
New in version 0.18.1.
Acallable can be used as other.
inplace : boolean, default False
Whether to perform the operation in place on the data
axis : alignment axis ifneeded, default None
level : alignment level if needed, default None
try_cast : boolean, default False
try to cast the result back to the input type (ifpossible),
raise_on_error : boolean, default True
Whether to raise on invalid data types (e.g. trying to where on strings)
Returns wh : same type as caller
pandas.Panel4D.max
Panel4D.max(axis=None, skipna=None,level=None, numeric_only=None,**kwargs)
This method returns the maximum of the values inthe object. Ifyouwanttheindexofthe maximum,
use idxmax. This is the equivalent of the numpy.ndarray method argmax.
Parameters axis : {labels (0), items (1), major_axis (2), minor_axis (3)}
skipna : boolean, default True
Exclude NA/null values. If an entire row/column is NA, the result will be NA
level : int or level name, default None
If the axis is a MultiIndex (hierarchical),countalong aparticularlevel, collapsing
into a Panel
numeric_only : boolean, default None
Include only float, int,boolean data. IfNone,will attempt to use everything,then
use only numeric data
Returns max : Panel orPanel4D (if level specified)
1620
Chapter 35. API Reference