Series.mean

Series.mean(numeric_only: bool | None = None) Series[source]

Return the mean of the Series values

TODO - implement remainder of pandas arguments, currently non-numerics are not supported

Returns

float

mean value

See Also

:pandas_api_docs:`pandas.Series.mean`

Examples

>>> from tests import OPENSEARCH_TEST_CLIENT
>>> s = oml.DataFrame(OPENSEARCH_TEST_CLIENT, 'flights')['AvgTicketPrice']
>>> int(s.mean())
628