Skip to content

Commit 021bdba

Browse files
committed
modified from np.NaN to np.nan
1 parent 5175288 commit 021bdba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexing/test_loc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3308,11 +3308,11 @@ def test_loc_setitem_matching_index(self, series_with_simple_index):
33083308
random_sample = ser1.sample(n=nsize)
33093309
matching_mask = ser1.index.isin(random_sample.index)
33103310
# Remove values at indices to test assignment
3311-
ser1.loc[matching_mask] = np.NaN
3311+
ser1.loc[matching_mask] = np.nan
33123312
ser1.loc[matching_mask] = random_sample
33133313
tm.assert_series_equal(ser1, ser2)
33143314
# exclude row and index and test assignment of unmatched indices
33153315
exclude_mask = ~matching_mask
33163316
ser2.loc[matching_mask] = ser1.loc[exclude_mask]
3317-
ser1.loc[matching_mask] = np.NaN
3317+
ser1.loc[matching_mask] = np.nan
33183318
tm.assert_series_equal(ser2, ser1)

0 commit comments

Comments
 (0)