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 e93238a commit 09e2d9fCopy full SHA for 09e2d9f
pandas/core/frame.py
@@ -4651,9 +4651,9 @@ def select(self, *args: Hashable | list[Hashable]):
4651
if len(args) == 1:
4652
columns = list_or_star_args[0]
4653
else:
4654
- raise ValueError(err_msg)
+ raise TypeError(err_msg)
4655
elif any(isinstance(arg, list) for arg in args):
4656
4657
4658
columns = list_or_star_args # type: ignore[assignment]
4659
0 commit comments