I'm trying to export a list of tuples to Excel via Pandas Datarame but every time i try to run the function, i get:
TypeError: init() got an unexpected keyword argument "engine"
The list of tuples is something like
[(83, 97), (34, 78), (39, 70), (60, 66), (90, 48)...]
Here is the code I'm using:
#Create a Pandas Excel writer using XlsxWriter as the engine.
writer = pd.ExcelWriter(results, engine='xlsxwriter')
df.to_excel(writer, sheet_name='Sheet1', index=False)
Does anyone know why this is occurring? Is this a case of a missing module? I'm working in an area that has no access to the internet so I can't download/update libraries. Could there be a different alternative to passing a list of tuples easily to an excel file?