From d1aba6c2cde60125fd07a1948f58bd3356427056 Mon Sep 17 00:00:00 2001 From: Uddeshya Singh Date: Sat, 2 Jun 2018 10:52:51 +0530 Subject: [PATCH 1/4] Updating Docs Just stating that numpy.percentile also offers something similar to this --- pandas/core/series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 4cf29319f703e..161522488367a 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1837,7 +1837,7 @@ def round(self, decimals=0, *args, **kwargs): def quantile(self, q=0.5, interpolation='linear'): """ - Return value at the given quantile, a la numpy.percentile. + Return value at the given quantile, (you can also see numpy.percentile, much similar like series.quantile). Parameters ---------- From a76063950758a03bcf92d0f4ff32a82152494d31 Mon Sep 17 00:00:00 2001 From: Uddeshya Singh Date: Sat, 2 Jun 2018 10:58:49 +0530 Subject: [PATCH 2/4] Update series.py followed PEP8 rules --- pandas/core/series.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 161522488367a..730758fa416bf 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1837,8 +1837,9 @@ def round(self, decimals=0, *args, **kwargs): def quantile(self, q=0.5, interpolation='linear'): """ - Return value at the given quantile, (you can also see numpy.percentile, much similar like series.quantile). - + Return value at the given quantile + (you can also see numpy.percentile, much similar like series.quantile). + Parameters ---------- q : float or array-like, default 0.5 (50% quantile) From 255a6f6ea0054762a71b6212e2d9443d78bc2028 Mon Sep 17 00:00:00 2001 From: Uddeshya Singh Date: Sat, 2 Jun 2018 11:03:50 +0530 Subject: [PATCH 3/4] Update series.py --- pandas/core/series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 730758fa416bf..9365c577f6aae 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1839,7 +1839,7 @@ def quantile(self, q=0.5, interpolation='linear'): """ Return value at the given quantile (you can also see numpy.percentile, much similar like series.quantile). - + Parameters ---------- q : float or array-like, default 0.5 (50% quantile) From 194c5c1aa95da15ab277fedcdb1cf26774903b50 Mon Sep 17 00:00:00 2001 From: Uddeshya Singh Date: Wed, 6 Jun 2018 11:34:14 +0530 Subject: [PATCH 4/4] Update series.py inserted numpy.percentile in See also section --- pandas/core/series.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index 9365c577f6aae..d8bdd9ac9ed22 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1837,8 +1837,7 @@ def round(self, decimals=0, *args, **kwargs): def quantile(self, q=0.5, interpolation='linear'): """ - Return value at the given quantile - (you can also see numpy.percentile, much similar like series.quantile). + Return value at the given quantile. Parameters ---------- @@ -1877,6 +1876,7 @@ def quantile(self, q=0.5, interpolation='linear'): See Also -------- pandas.core.window.Rolling.quantile + numpy.percentile """ self._check_percentile(q)