Why should we not take the header row

dataset shouldn’t have a header row, otherwise, the function will print the wrong number of rows (one more row compared to the actual length).

what does this mean?
why should we not consider the header row ?

Hi @harsharam911:

In future, please include a question link and your code as per these guidelines. Header rows are often removed in csv files as a preprocessing step before any further data wrangling or manipulation is performed. It is important to note that the header row provides insight when you are looking at csv files but often these values are of type string are not needed when processing data and thus are stripped away.

Hope this helps!

1 Like