Aug-26-2023, 10:40 PM
Quote:The Excel file I'm reading has usually 2 first rows blank sometimes more. I'd like to completely remove blank rows.Why is there no consistency in the files you are processing? Maybe you should look into fixing that.
Cannot rename Columns in df
|
Aug-26-2023, 10:40 PM
Quote:The Excel file I'm reading has usually 2 first rows blank sometimes more. I'd like to completely remove blank rows.Why is there no consistency in the files you are processing? Maybe you should look into fixing that.
Aug-27-2023, 06:10 AM
skiprows accepts callable as argument so maybe use lambda to determine empty rows?
Quote:skiprows
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame. |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
How to rename dataframe columns based on the content in an index? | ar_mahdavi | 2 | 2,493 |
Jun-07-2021, 06:09 AM Last Post: ricslato |