Series.mad

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

Return median absolute deviation for a Series

Returns

float

mad value

See Also

:pandas_api_docs:`pandas.Series.mad`

Examples

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