Skip to content

Commit 70a1141

Browse files
authored
DOC: Correct groupby().mean() usage in table layout getting started article (#55600)
* DOC: Correct groupby().mean() usage in table layout getting started article * DOC: Explicitly select column in table layout article's groupby().mean() usage
1 parent b3fa178 commit 70a1141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ For more information about :meth:`~DataFrame.pivot_table`, see the user guide se
266266

267267
::
268268

269-
air_quality.groupby(["parameter", "location"]).mean()
269+
air_quality.groupby(["parameter", "location"])[["value"]].mean()
270270

271271
.. raw:: html
272272

0 commit comments

Comments
 (0)