Hello,
I recently start to learn Python (I use Jupyter), and I do a code which scrap data from several urls. Depending on the frames, I write data in excel files and sheets.
Everything looks fine, but when I open the excel file I have an error message to recover the data like this one :
![[Image: lIt7y.png]](https://i.stack.imgur.com/lIt7y.png)
If I accept, I can see the data correctly but I don't understand why I have this message.
The problem won't appears when the Excel file has only one sheet.
Do you know what can be the cause ?
Thank you.
Example of loop I used :
I recently start to learn Python (I use Jupyter), and I do a code which scrap data from several urls. Depending on the frames, I write data in excel files and sheets.
Everything looks fine, but when I open the excel file I have an error message to recover the data like this one :
![[Image: lIt7y.png]](https://i.stack.imgur.com/lIt7y.png)
If I accept, I can see the data correctly but I don't understand why I have this message.
The problem won't appears when the Excel file has only one sheet.
Do you know what can be the cause ?
Thank you.
Example of loop I used :
df = pd.read_html(xurl) writerhome = ExcelWriter(pathhome+'\\'+home+'_v1.xlsx') print("******START COPY DATA******") for idx,table in enumerate(df) : print("************") print(idx) #dataframe id in the url print(table) #data from the dataframe if idx >2 and idx <10 : #Tableau home print('Copy in '+home+'_v1.xlsx sheetname_home : '+(dictsheets[idx])) df[idx].to_excel(writerhome, sheet_name=dictsheets[idx], index=True) writerhome.save()