O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Specifying column names

It is also possible to specify the column names at the time of reading the data, by using the names parameter:

Since we specified the names of the columns, we need to skip over the 'column names' row in the file, which was performed with header=0. If not done, pandas will assume that the first row is part of the data, which will cause some issues later in processing.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required