Skip to content

Commit 0b0bb76

Browse files
committed
Fix formatting
1 parent d318f25 commit 0b0bb76

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pandas/tests/io/formats/test_to_csv.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -559,14 +559,11 @@ def test_to_csv_zip_arguments(self, compression, archive_name):
559559
@pytest.mark.parametrize("df_new_type", ["Int64"])
560560
def test_to_csv_na_rep_long_string(self, df_new_type):
561561
# see gh-25099
562-
df = pd.DataFrame({"c": [float('nan')]*3})
562+
df = pd.DataFrame({"c": [float("nan")] * 3})
563563
df = df.astype(df_new_type)
564-
expected_rows = ['c',
565-
'mynull',
566-
'mynull',
567-
'mynull']
564+
expected_rows = ["c", "mynull", "mynull", "mynull"]
568565
expected = tm.convert_rows_list_to_csv_str(expected_rows)
569566

570-
result = df.to_csv(index=False, na_rep='mynull', encoding='ascii')
567+
result = df.to_csv(index=False, na_rep="mynull", encoding="ascii")
571568

572569
assert expected == result

0 commit comments

Comments
 (0)