eland.Series.quantile

Series.quantile(q: int | float | list[int] | list[float] = 0.5) Series | Any

Used to calculate quantile for a given Series.

Parameters

q:

float or array like, default 0.5 Value between 0 <= q <= 1, the quantile(s) to compute.

Returns

pandas.Series or any single dtype

See Also

pandas.Series.quantile

Examples

>>> ed_flights = ed.DataFrame('http://localhost:9200', 'flights')
>>> ed_flights["timestamp"].quantile([.2,.5,.75])
0.20   2018-01-09 04:30:57.289159912
0.50   2018-01-21 23:39:27.031627441
0.75   2018-02-01 04:54:59.256136963
Name: timestamp, dtype: datetime64[ns]
>>> ed_flights["dayOfWeek"].quantile()
3.0
>>> ed_flights["timestamp"].quantile()
Timestamp('2018-01-22 00:12:48.844534180')