eland.Series.quantile

Series.quantile(q: Union[int, float, List[int], List[float]] = 0.5) → Union[pandas.core.series.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

Examples

>>> ed_flights = ed.DataFrame('localhost', 'flights')
>>> ed_flights["timestamp"].quantile([.2,.5,.75]) # doctest: +SKIP
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() # doctest: +SKIP
3.0
>>> ed_flights["timestamp"].quantile() # doctest: +SKIP
Timestamp('2018-01-22 00:12:48.844534180')