Skip to content

Commit de3a710

Browse files
Update pandas/core/generic.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent bc3cf7f commit de3a710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9817,7 +9817,7 @@ def _where(
98179817
for i in range(self.shape[1])
98189818
]
98199819
res = self._constructor(
9820-
{i: res_cols[i] for i in range(len(res_cols))}
9820+
dict(enumerate(res_cols))
98219821
)
98229822
res.index = self.index
98239823
res.columns = self.columns

0 commit comments

Comments
 (0)