Skip to content

Commit 5d1d2ca

Browse files
committed
replaces boolean series by numpy array
1 parent 72e4a9a commit 5d1d2ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3481,7 +3481,7 @@ def select_dtypes(self, include=None, exclude=None):
34813481

34823482
# We raise when both include and exclude are empty
34833483
# Hence, we can just shrink the columns we want to keep
3484-
keep_these = Series(True, index=self.columns)
3484+
keep_these = np.full(self.shape[1], True)
34853485

34863486
def extract_unique_dtypes_from_dtypes_list(
34873487
dtypes_list: List[Type], unique_dtypes: List[Type]

0 commit comments

Comments
 (0)