Informatics Practices

To skip first 5 rows of CSV file, which argument will you give in read_csv() ?

  1. skiprows = 5
  2. skip_rows = 5
  3. skip = 5
  4. noread = 5

Python Pandas

1 Like

Answer

skiprows = 5

Reason — The skiprows = 5 argument in the read_csv() function is used to skip the first 5 rows of the CSV file and start reading from the 6th row onwards.

Answered By

2 Likes


Related Questions