O'Reilly logo

Learning pandas 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

Chapter 5. The pandas DataFrame Object

The pandas DataFrame object extends the capabilities of the Series object into two-dimensions. A Series object adds an index to a NumPy array but can only associate a single data item per index label, a DataFrame integrates multiple Series objects by aligning them along common index labels. This automatic alignment by index label provides a seamless view across all the Series at each index label that has the appearance of a row in a table.

A DataFrame object can be thought of as a dictionary-like container of one or more Series objects, or as a spreadsheet, probably the best description for those new to pandas is to compare a DataFrame object to a relational database table. However, even that comparison is ...

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