Once I've read data from an.xls file sheet. Without making any other changes to the excel file, I want to add that data to a sheet in an existing file with the .ods extension. Openpyxl was my first choice, but it does not support it.ods files. I then tried pyexcel-ods3, but I am still unsure of how to use it to update an existing .ods file.
This is the code I tried but it's for writing a new .ods excel file and not for updating an existing one.
from pyexcel_ods3 import save_data
data = OrderedDict() # from collections import OrderedDict
data.update({"Sheet 1": [[1, 2, 3], [9, 5, 6]]})
data.update({"Sheet 2": [["row 1", "row 2", "row 3"]]})
save_data("your_file.ods", data)
I tried finding the code for updating in the pyexcel-ods3 doc but could not find anything. If pyexcel-ods3 contains a code for it, do let me know. In addition, if a new package can complete this work, I'm willing to try it. The Python version I'm using is 3.9.1.