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])>>>s0    11    3dtype: Int64
>>>s.mean()np.float64(2.0)

Calculating the mean of a Series containingNA values:

>>>s=bpd.Series([1,3,pd.NA])>>>s0       11       32    <NA>dtype: Int64
>>>s.mean()np.float64(2.0)
Returns:

Scalar.

Return type:

scalar

On this page

This Page