a5eb94d266fc5f57acd29f585e2c944259cd0861,pandas/tests/io/excel/test_openpyxl.py,,test_write_append_mode,#Any#Any#Any#,85
Before Change
wb.worksheets[1]["A1"].value = "bar"
wb.save(f)
writer = ExcelWriter(f, engine="openpyxl", mode=mode)
df.to_excel(writer, sheet_name="baz", index=False)
writer.save()
wb2 = openpyxl.load_workbook(f)
result = [sheet.title for sheet in wb2.worksheets]
assert result == expected
After Change
wb.worksheets[1]["A1"].value = "bar"
wb.save(f)
with ExcelWriter(f, engine="openpyxl", mode=mode) as writer:
df.to_excel(writer, sheet_name="baz", index=False)
wb2 = openpyxl.load_workbook(f)
result = [sheet.title for sheet in wb2.worksheets]
assert result == expected
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pandas-dev/pandas
Commit Name: a5eb94d266fc5f57acd29f585e2c944259cd0861
Time: 2020-11-30
Author: twoertwein@users.noreply.github.com
File Name: pandas/tests/io/excel/test_openpyxl.py
Class Name:
Method Name: test_write_append_mode
Project Name: pandas-dev/pandas
Commit Name: a5eb94d266fc5f57acd29f585e2c944259cd0861
Time: 2020-11-30
Author: twoertwein@users.noreply.github.com
File Name: pandas/tests/io/excel/test_style.py
Class Name:
Method Name: test_styler_to_excel
Project Name: pandas-dev/pandas
Commit Name: a5eb94d266fc5f57acd29f585e2c944259cd0861
Time: 2020-11-30
Author: twoertwein@users.noreply.github.com
File Name: pandas/tests/io/excel/test_xlsxwriter.py
Class Name:
Method Name: test_column_format