bigframes.pandas.Series.max#
- Series.max() Any[source]#
Return the maximum of the values over the requested axis.
If you want the index of the maximum, use
idxmax. This is the equivalent of thenumpy.ndarraymethodargmax.Examples:
Calculating the max of a Series:
>>> s = bpd.Series([1, 3]) >>> s 0 1 1 3 dtype: Int64
>>> s.max() np.int64(3)
Calculating the max of a Series containing
NAvalues:>>> s = bpd.Series([1, 3, pd.NA]) >>> s 0 1 1 3 2 <NA> dtype: Int64
>>> s.max() np.int64(3)
- Returns:
Scalar.
- Return type:
scalar