Skip to content

Commit 3a25cb9

Browse files
CLN: remove unnecessary ensure_platform_int (#44563)
1 parent 8f1dd29 commit 3a25cb9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/array_algos/take.py

-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ def take_1d(
179179
Note: similarly to `take_nd`, this function assumes that the indexer is
180180
a valid(ated) indexer with no out of bound indices.
181181
"""
182-
indexer = ensure_platform_int(indexer)
183-
184182
if not isinstance(arr, np.ndarray):
185183
# ExtensionArray -> dispatch to their method
186184
return arr.take(indexer, fill_value=fill_value, allow_fill=allow_fill)

0 commit comments

Comments
 (0)