From 919077537addf1a0d4c4090c0bd6f845b7377fbd Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Date: Sun, 20 Mar 2016 12:22:10 +0530 Subject: [PATCH 1/2] Fixed #12661: more clarification in the where statement Improvement in the documentation w.r.t to issue #12661 --- doc/source/10min.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/10min.rst b/doc/source/10min.rst index d51290b2a983b..d82df28c82bd9 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -284,6 +284,12 @@ Using a single column's values to select data. A ``where`` operation for getting. +.. ipython:: python + + df.where(df>0) + +It is similar to the statement. + .. ipython:: python df[df > 0] From 16de918b063f75d9dc81f2dd1c901b7f33fed5e4 Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Date: Sun, 20 Mar 2016 19:44:15 +0530 Subject: [PATCH 2/2] explanation to where clause --- doc/source/10min.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/10min.rst b/doc/source/10min.rst index d82df28c82bd9..46f3b44055571 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -282,7 +282,8 @@ Using a single column's values to select data. df[df.A > 0] -A ``where`` operation for getting. +A ``where`` is an attribute of the DataFrame class which helps in getting the results +based upon the conditional statement that was passed as an argument. .. ipython:: python