I currently have a dataframe that looks like this:
I'm looking for a way to delete the header row and make the first row the new header row, so the new dataframe would look like this:
I've tried stuff along the lines of if 'Unnamed' in df.columns: then make the dataframe without the header df.to_csv(newformat,header=False,index=False) but I don't seem to be getting anywhere.