Skip to content

Commit a165278

Browse files
Update masked.py
Make black and ruff happy. Signed-off-by: Michael Tiemann <72577720+MichaelTiemannOSC@users.noreply.github.com>
1 parent 4c04e30 commit a165278

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: pandas/core/arrays/masked.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,9 @@ def take(
870870
# we only fill where the indexer is null
871871
# not existing missing values
872872
# TODO(jreback) what if we have a non-na float as a fill value?
873-
# NaN with uncertainties is scalar but does not register as `isna`, so use fact that NaN != NaN
874-
if allow_fill and notna(fill_value) and fill_value==fill_value:
873+
# NaN with uncertainties is scalar but does not register as `isna`,
874+
# so use fact that NaN != NaN
875+
if allow_fill and notna(fill_value) and fill_value == fill_value:
875876
fill_mask = np.asarray(indexer) == -1
876877
result[fill_mask] = fill_value
877878
mask = mask ^ fill_mask

0 commit comments

Comments
 (0)