diff --git a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst index 6a0b59b26350c..e4b34e3af57bf 100644 --- a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst +++ b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst @@ -266,7 +266,7 @@ For more information about :meth:`~DataFrame.pivot_table`, see the user guide se :: - air_quality.groupby(["parameter", "location"]).mean() + air_quality.groupby(["parameter", "location"])[["value"]].mean() .. raw:: html