How to add header row to a pandas DataFrame

I am reading a csv file into pandas. This csv file constists of four columns and some rows, but does not have a header row, which I want to add. I have been trying the following: Cov = pd.read_csv(“path/to/file.txt”, sep=’\t’) Frame=pd.DataFrame([Cov], columns = [“Sequence”, “Start”, “End”, “Coverage”]) Frame.to_csv(“path/to/file.txt”, sep=’\t’) But when I apply the code, … Read more