Series.var

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

Return variance for a Series

Returns

float

var value

See Also

:pandas_api_docs:`pandas.Series.var`

Examples

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