From 9bdd1a8f621293d09b6be82f247e3d46e16b7b28 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 21 Nov 2021 14:54:11 +0100 Subject: [PATCH] CLN: remove unnecessary ensure_platform_int --- pandas/core/array_algos/take.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py index 87d55702b33e0..c9d6640101a8b 100644 --- a/pandas/core/array_algos/take.py +++ b/pandas/core/array_algos/take.py @@ -179,8 +179,6 @@ def take_1d( Note: similarly to `take_nd`, this function assumes that the indexer is a valid(ated) indexer with no out of bound indices. """ - indexer = ensure_platform_int(indexer) - if not isinstance(arr, np.ndarray): # ExtensionArray -> dispatch to their method return arr.take(indexer, fill_value=fill_value, allow_fill=allow_fill)