Skip to content

Commit 6858409

Browse files
committed
Added note
1 parent eb43fa4 commit 6858409

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/arrays/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@ def take(self, indices, allow_fill=False, fill_value=None):
535535
if allow_fill and fill_value is None:
536536
fill_value = self.dtype.na_value
537537
538+
# fill value should always be translated from the scalar
539+
# type for the array, to the physical storage type for
540+
# the data, before passing to take.
541+
538542
result = take(data, indices, fill_value=fill_value,
539543
allow_fill=allow_fill)
540544
return self._from_sequence(result)

0 commit comments

Comments
 (0)