diff --git a/doc/source/missing_data.rst b/doc/source/missing_data.rst index 8ea28c6b686f5..5a350b4d9a1e7 100644 --- a/doc/source/missing_data.rst +++ b/doc/source/missing_data.rst @@ -174,7 +174,12 @@ NA values in GroupBy ~~~~~~~~~~~~~~~~~~~~ NA groups in GroupBy are automatically excluded. This behavior is consistent -with R, for example. +with R, for example: + +.. ipython:: python + + df + df.groupby('one').mean() See the groupby section :ref:`here ` for more information.