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, we examined how to model categorical variables using pandas Categoricals. We started with a review of the ways to create Categoricals and also looked at several examples of how to utilize underlying integer codes to classify each category. We then examined several means of modifying a categorical once it has been created. The chapter closed with an example of using a categorical to break data into a set of named bins.

In the next chapter, we examine performing numerical and statistical analysis on pandas data.