When I open and excel file, the excel show me a message.
"Do you want to open this excel file anyway?" Yes, No, Cancel
I want to open it by python and automatically click Yes by python too. I don't know what to do. I am totally beginner in python. I would be grateful if anyone can help me.
What are you using to open your file using python, and what do you mean open? This works for me:
pd.read_excel('example.xlsx')
more on it here: https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.