Skip to content

Commit

Permalink
Add copy=True
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Jan 8, 2024
1 parent 988c199 commit dbb4afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/series/methods/test_nlargest.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_nlargest_nullable(self, any_numeric_ea_dtype):
arr = np.random.default_rng(2).standard_normal(10)
arr = arr.astype(dtype.lower(), copy=False)

ser = Series(arr, dtype=dtype)
ser = Series(arr, dtype=dtype, copy=True)
ser[1] = pd.NA
result = ser.nlargest(5)

Expand Down

0 comments on commit dbb4afc

Please sign in to comment.