I am having issues with opening an Excel file from Jupyter Notebooks on my Mac. I previously saved it to my cloud.
To create the Excel, I copy my df to Excel and save it. So far so good.
path = '/Users/username/name.xlsx'
writer = pd.ExcelWriter(path,
engine = 'xlsxwriter')
df.to_excel(writer, sheet_name = 'Sheet1')
writer.save()
writer.close()
When I then try to launch it, it won't work.
Here's my code:
import os
os.system("open -a '/Applications/Microsoft Excel.app' path")
All I get is Output 256 in my notebook and Excel won't open.
Would anyone know why?