From be3a0f9c5f82def7e62f8529108832a423e07006 Mon Sep 17 00:00:00 2001 From: Abhijit Deo <72816663+abhi-glitchhg@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:38:30 +0530 Subject: [PATCH 1/3] Update generic.py --- pandas/core/generic.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1ae4c3cdfc458..a2d27ec678b66 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8785,6 +8785,16 @@ def clip( 3 -1 6 4 5 -4 + Clips using specific lower and upper thresholds per column: + + >>> df.clip([-2, -1], [4,5]) + col_0 col_1 + 0 4 -1 + 1 -2 -1 + 2 0 5 + 3 -1 5 + 4 4 -1 + Clips using specific lower and upper thresholds per column element: >>> t = pd.Series([2, -4, -1, 6, 3]) From 6a28b7097ecb2516649081afdf7e8b2176468a22 Mon Sep 17 00:00:00 2001 From: Abhijit Deo <72816663+abhi-glitchhg@users.noreply.github.com> Date: Fri, 20 Oct 2023 07:36:50 +0530 Subject: [PATCH 2/3] Update generic.py --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a2d27ec678b66..be027baffa6c8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8788,7 +8788,7 @@ def clip( Clips using specific lower and upper thresholds per column: >>> df.clip([-2, -1], [4,5]) - col_0 col_1 + col_0 col_1 0 4 -1 1 -2 -1 2 0 5 From 9c800dfe53497c0a3433f3c90e03b51bcdf5d9d6 Mon Sep 17 00:00:00 2001 From: Abhijit Deo <72816663+abhi-glitchhg@users.noreply.github.com> Date: Fri, 20 Oct 2023 08:42:00 +0530 Subject: [PATCH 3/3] Update generic.py --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index be027baffa6c8..c525003cabd10 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8786,7 +8786,7 @@ def clip( 4 5 -4 Clips using specific lower and upper thresholds per column: - + >>> df.clip([-2, -1], [4,5]) col_0 col_1 0 4 -1