Skip to content

Commit 4ef1a53

Browse files
author
root
committed
TST: fix formatting issues pandas-dev#23305
1 parent 22e0779 commit 4ef1a53

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/tests/frame/methods/test_replace.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ def test_replace_period_ignore_float(self):
14811481

14821482
def test_replace_value_category_type(self, input_category_df, expected_category_df):
14831483
"""
1484-
Test to ensure category dtypes are maintained
1484+
Test to ensure category dtypes are maintained
14851485
after replace with direct values
14861486
"""
14871487

@@ -1493,15 +1493,16 @@ def test_replace_value_category_type(self, input_category_df, expected_category_
14931493
tm.assert_frame_equal(input_df, expected_category_df)
14941494

14951495
@pytest.mark.xfail(
1496-
reason="currently, category dtype gets changed to object type after replace, see #23305", strict=True
1496+
reason="currently, category dtype gets changed to object type after replace, see #23305",
1497+
strict=True,
14971498
)
14981499
def test_replace_dict_category_type(self, input_category_df, expected_category_df):
14991500
"""
1500-
Test to ensure category dtypes are maintained
1501+
Test to ensure category dtypes are maintained
15011502
after replace with dict values
15021503
"""
15031504

15041505
# replace values in input dataframe
15051506
input_df = input_category_df.replace({"d": "z", "obj1": "obj9", "cat2": "catX"})
15061507

1507-
tm.assert_frame_equal(input_df, expected_category_df)
1508+
tm.assert_frame_equal(input_df, expected_category_df)

0 commit comments

Comments
 (0)