From f7877016c08947b1e267e6aa369cf8ecb2e2069c Mon Sep 17 00:00:00 2001 From: Shreeram Date: Sat, 17 Aug 2019 18:53:49 -0500 Subject: [PATCH 1/2] Adding examples for pipe() to fix F821 flake8 error --- doc/source/getting_started/basics.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 3f6f56376861f..54427c1506fe3 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -762,6 +762,13 @@ Compare the following .. code-block:: python # f, g, and h are functions taking and returning ``DataFrames`` + >>> def h(df): + ... return df * df + >>> def g(df, arg1): + ... return df + arg1 + >>> def f(df, arg2, arg3): + ... return df * (arg2 + arg3) + >>> f(g(h(df), arg1=1), arg2=2, arg3=3) >>> f(g(h(df), arg1=1), arg2=2, arg3=3) with the equivalent From 80a2027ce6d762c24ae62853fb77c6aed113e073 Mon Sep 17 00:00:00 2001 From: Shreeram Date: Sat, 17 Aug 2019 19:31:36 -0500 Subject: [PATCH 2/2] Removing >>> def h(df): --- doc/source/getting_started/basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 54427c1506fe3..66db7bbedce2a 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -769,7 +769,7 @@ Compare the following >>> def f(df, arg2, arg3): ... return df * (arg2 + arg3) >>> f(g(h(df), arg1=1), arg2=2, arg3=3) - >>> f(g(h(df), arg1=1), arg2=2, arg3=3) + with the equivalent