Skip to content

Commit f4df033

Browse files
committed
fixed test_map_na_action_ignore
1 parent 8222c21 commit f4df033

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/tests/extension/test_masked.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,7 @@ def test_map_na_action_ignore(self, data_missing_for_sorting):
191191
if data_missing_for_sorting.dtype.kind == "b":
192192
expected = np.array([False, pd.NA, False], dtype=object)
193193
else:
194-
expected = np.array([zero, pd.NA, zero])
195-
for i in range(len(result)):
196-
if result[i] is pd.NA:
197-
result[i] = "nan"
198-
result = result.astype("float64")
194+
expected = np.array([zero, pd.NA, zero])
199195
tm.assert_numpy_array_equal(result, expected)
200196

201197
def _get_expected_exception(self, op_name, obj, other):

0 commit comments

Comments
 (0)