Skip to content

Commit cf7406a

Browse files
committed
actually fixup typing
1 parent 448c430 commit cf7406a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6160,6 +6160,8 @@ def f(vals) -> tuple[np.ndarray, int]:
61606160
and subset in self.columns
61616161
):
61626162
subset_iterable = (subset,)
6163+
else:
6164+
subset_iterable = cast(Iterable, subset)
61636165

61646166
# Verify all columns in subset exist in the queried dataframe
61656167
# Otherwise, raise a KeyError, same as if you try to __getitem__ with a

0 commit comments

Comments
 (0)