diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 3f6f56376861f..66db7bbedce2a 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -762,8 +762,15 @@ 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) + with the equivalent .. code-block:: python