Data parsing options

We can choose which rows are skipped by reading a CSV file. We can pass the row numbers as a list to the skiprows option. The first row has the index zero, as follows:

df = pd.read_csv('IMDB.csv', encoding = "ISO-8859-1", skiprows = [1,3,7])df.head()

The output is as follows:

Get Mastering Exploratory Analysis with pandas now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.