Skip to content

Commit 477bde6

Browse files
committed
updated the docstring in accordance with GH40378
1 parent 22241da commit 477bde6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/frame.py

+4
Original file line numberDiff line numberDiff line change
@@ -8333,12 +8333,16 @@ def update(
83338333
2 Parrot 24.0
83348334
3 Parrot 26.0
83358335
8336+
8337+
8338+
83368339
When using ``.groupby()`` on a multiple index dataframe,
83378340
do not specify both ``by`` and ``level``.
83388341
The argument validation should be done in instead be done in
83398342
``.groupby()``, using the name of the specific index.
83408343
83418344
>>> df = pandas.DataFrame({"col1": ["a", "b", "c"]})
8345+
83428346
>>> df.index = pandas.MultiIndex.from_arrays([["a", "a", "b"],
83438347
... [1, 2, 1]],
83448348
... names=["x", "y"])

0 commit comments

Comments
 (0)