We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 826e793 commit 642dfbeCopy full SHA for 642dfbe
pandas/core/indexes/base.py
@@ -1411,8 +1411,8 @@ def _validate_index_level(self, level):
1411
if isinstance(level, int):
1412
if level < 0 and level != -1:
1413
raise IndexError("Too many levels: Index has only 1 level,"
1414
- " {level} is not a valid level number"
1415
- "".format(level=level))
+ " {level} is not a valid level"
+ " number".format(level=level))
1416
elif level > 0:
1417
raise IndexError("Too many levels: Index has only 1 level, not"
1418
" {level}".format(level=(level + 1)))
0 commit comments