Approximate quantiles of Series Parameters ---------- q : list/array of floats, default 0.5 (50%) Iterable of numbers ranging from 0 to 1 for the desired quantiles method : {'default', 'tdigest', 'dask'}, optional What method to use. By defaul
(self, q=0.5, method="default")
| 4551 | return new_collection(expr.RenameSeries(self, index, sorted_index)) |
| 4552 | |
| 4553 | def quantile(self, q=0.5, method="default"): |
| 4554 | """Approximate quantiles of Series |
| 4555 | |
| 4556 | Parameters |
| 4557 | ---------- |
| 4558 | q : list/array of floats, default 0.5 (50%) |
| 4559 | Iterable of numbers ranging from 0 to 1 for the desired quantiles |
| 4560 | method : {'default', 'tdigest', 'dask'}, optional |
| 4561 | What method to use. By default will use dask's internal custom |
| 4562 | algorithm (``'dask'``). If set to ``'tdigest'`` will use tdigest |
| 4563 | for floats and ints and fallback to the ``'dask'`` otherwise. |
| 4564 | """ |
| 4565 | _raise_if_object_series(self, "quantile") |
| 4566 | allowed_methods = ["default", "dask", "tdigest"] |
| 4567 | if method not in allowed_methods: |
| 4568 | raise ValueError("method can only be 'default', 'dask' or 'tdigest'") |
| 4569 | return new_collection(SeriesQuantile(self, q, method)) |
| 4570 | |
| 4571 | @derived_from(pd.Series) |
| 4572 | def median(self): |
no test coverage detected