pandas.read_csv: how to skip comment lines

So I believe in the latest releases of pandas (version 0.16.0), you could throw in the comment="#" parameter into pd.read_csv and this should skip commented out lines.

These github issues shows that you can do this:

See the documentation on read_csv: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html

Leave a Comment