Skip to content

Commit d90af92

Browse files
authored
Update test_algos.py
1 parent 2733336 commit d90af92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/test_algos.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ def test_isin_int_df_string_search(self):
23882388
def test_isin_nan_df_string_search(self):
23892389
"""Comparing df with nan value (np.nan,2) with a string at isin() ("NaN")
23902390
-> should not match values because np.nan is not equal str NaN """
2391-
df = DataFrame({"values": [np.nan, 2]})
2391+
df = pd.DataFrame({"values": [np.nan, 2]})
23922392
result = df.isin(["NaN"])
23932393
expected_false = pd.DataFrame({"values": [False, False]})
23942394
tm.assert_frame_equal(result, expected_false)
@@ -2397,7 +2397,7 @@ def test_isin_nan_df_string_search(self):
23972397
def test_isin_float_df_string_search(self):
23982398
"""Comparing df with floats (1.4245,2.32441) with a string at isin() ("1.4245")
23992399
-> should not match values because float 1.4245 is not equal str 1.4245"""
2400-
df = DataFrame({"values": [1.4245, 2.32441]})
2400+
df = pd.DataFrame({"values": [1.4245, 2.32441]})
24012401
result = df.isin(["1.4245"])
24022402
expected_false = pd.DataFrame({"values": [False, False]})
24032403
tm.assert_frame_equal(result, expected_false)

0 commit comments

Comments
 (0)