Manipulating columns, index locations, and names

By default, read_csv considers the entries in the first row of the CSV file as column names. We can turn this off by setting header to None, as shown in the following code block:

df = pd.read_csv('IMDB.csv', encoding = "ISO-8859-1", header=None)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.