Skipping rows at the beginning

To skip rows at the beginning of a file, we simply set skiprows to the number of rows we want to skip, as shown in the following code:

df = pd.read_excel('IMDB.xlsx', sheetname=1, skiprows=7)

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.