Book Image

Learning pandas - Second Edition

By : Michael Heydt
Book Image

Learning pandas - Second Edition

By: Michael Heydt

Overview of this book

You will learn how to use pandas to perform data analysis in Python. You will start with an overview of data analysis and iteratively progress from modeling data, to accessing data from remote sources, performing numeric and statistical analysis, through indexing and performing aggregate analysis, and finally to visualizing statistical data and applying pandas to finance. With the knowledge you gain from this book, you will quickly learn pandas and how it can empower you in the exciting world of data manipulation, analysis and science.
Table of Contents (16 chapters)

Summary

In this chapter, you learned about the pandas Series object and how it can be used to represent an indexed representation of variable measurements. We started with how to create and initialize a Series and its associated index, and then examined how to manipulate the data in one or more Series objects. We examined how to align Series objects by index label and apply mathematical operations across the aligned values. We then examined how to look up data by index, as well as how to perform queries based upon the data (Boolean expressions). We then closed with an examination of how to use re-indexing to change indexes and align data.

In the next chapter, you will learn how the DataFrame is used to represent multiple Series of data in a uniform tabular structure.