We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b39a25 commit 5e758c5Copy full SHA for 5e758c5
pandas/core/frame.py
@@ -8337,14 +8337,6 @@ def update(
8337
do not specify both ``by`` and ``level``.
8338
The argument validation should be done in instead be done in
8339
``.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
8348
"""
8349
)
8350
@Appender(_shared_docs["groupby"] % _shared_doc_kwargs)
0 commit comments