I have just started delving into the world of Pandas, and the first strange CSV file I've found is one where there are two lines of comments (with different column widths) right at the beginning.
sometext, sometext2
moretext, moretext1, moretext2
*header*
actual data ---
---------------
I know how to skip these lines with skiprows
or header=
, but, instead, how would I retain these comments while using read_csv
? Sometimes comments are necessary as file meta information, and I do not want to throw them away.