2

Pandas Data Structures Basics

Chapter 1 introduced the Pandas DataFrame and Series objects. These data structures resemble the primitive Python data containers (lists and dictionaries) for indexing and labeling, but have additional features that make working with data easier.

Learning Objectives

The concept map for this chapter can be found in Figure A.2.

  • Use functions to create and load manual data

  • Describe the Series object

  • Describe the DataFrame object

  • Identify basic operations on Series objects

  • Identify basic operations on DataFrame objects

  • Perform conditional subsetting, fancy slicing, and indexing

  • Use methods to save data

2.1 Create Your Own Data

Whether you are manually inputting data or creating a small test example, knowing how ...

Get Pandas for Everyone: Python Data Analysis, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.