bigframes.pandas.Series.mean#
- Series.mean() float[source]#
Return the mean of the values over the requested axis.
Examples:
Calculating the mean of a Series:
>>> s = bpd.Series([1, 3]) >>> s 0 1 1 3 dtype: Int64
>>> s.mean() np.float64(2.0)
Calculating the mean of a Series containing
NAvalues:>>> s = bpd.Series([1, 3, pd.NA]) >>> s 0 1 1 3 2 <NA> dtype: Int64
>>> s.mean() np.float64(2.0)
- Returns:
Scalar.
- Return type:
scalar