Skip to content

Commit 5e758c5

Browse files
committed
updated the docstring in accordance with GH40378
1 parent 1b39a25 commit 5e758c5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/core/frame.py

-8
Original file line numberDiff line numberDiff line change
@@ -8337,14 +8337,6 @@ def update(
83378337
do not specify both ``by`` and ``level``.
83388338
The argument validation should be done in instead be done in
83398339
``.groupby()``, using the name of the specific index.
8340-
8341-
>>> df = pandas.DataFrame({"col1": ["a", "b", "c"]})
8342-
8343-
>>> df.index = pandas.MultiIndex.from_arrays([["a", "a", "b"],
8344-
... [1, 2, 1]],
8345-
... names=["x", "y"])
8346-
>>> df.groupby(["col1", "x"]) # Fine
8347-
>>> df.groupby("col1", level=0) # TypeError
83488340
"""
83498341
)
83508342
@Appender(_shared_docs["groupby"] % _shared_doc_kwargs)

0 commit comments

Comments
 (0)