Skip to content

Commit 12a93fb

Browse files
authored
Refine comments on fast-path for integer itemsize
Clarified comments regarding fast-path application for integer widths.
1 parent 3a7487d commit 12a93fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def f(c, v):
578578
and comps_array.dtype.kind in "iu"
579579
# Only apply fast-path for 64-bit integer widths to avoid
580580
# surprising behaviour on platforms or dtypes with different
581-
# itemsize (see GH discussions). Narrowing to 8-byte ints
581+
# itemsize. Narrowing to 8-byte ints
582582
# keeps the fast-path safe and performant for the common case.
583583
and values.dtype.itemsize == 8
584584
and comps_array.dtype.itemsize == 8

0 commit comments

Comments
 (0)