Skip to content

Commit 09e2d9f

Browse files
Use TypeError instead of ValueError
1 parent e93238a commit 09e2d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4651,9 +4651,9 @@ def select(self, *args: Hashable | list[Hashable]):
46514651
if len(args) == 1:
46524652
columns = list_or_star_args[0]
46534653
else:
4654-
raise ValueError(err_msg)
4654+
raise TypeError(err_msg)
46554655
elif any(isinstance(arg, list) for arg in args):
4656-
raise ValueError(err_msg)
4656+
raise TypeError(err_msg)
46574657
else:
46584658
columns = list_or_star_args # type: ignore[assignment]
46594659

0 commit comments

Comments
 (0)