how to add headings to data in pandas

Solutions on MaxInterview for how to add headings to data in pandas by the best coders in the world

showing results for - "how to add headings to data in pandas"
Cali
05 Nov 2020
1Cov = pd.read_csv("path/to/file.txt", sep='\t')
2Frame=pd.DataFrame(Cov.values, columns = ["Sequence", "Start", "End", "Coverage"])
3Frame.to_csv("path/to/file.txt", sep='\t')