简体   繁体   中英

Pandas Dataframe loading data that was deleted from Excel

I've edited an excel file and am now trying to read it df = pd.read_excel('filename') into a dataframe. The original data is showing up in the data frame but not in the excel file. I have cleared the formatting in excel accross the entire workbook, and copy and pasted it into new tabs.

As it's seen in excel: There are two columns, one labeled keys, the other values

As it's seen in the data frame: There are 8 columns with their original names

Update: I've opened a new excel workbook and copied all data into the new workbook and it seems to be loading the new data now.

在再次运行代码之前重新启动内核。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM