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)

Representation of dates, time, and intervals

To begin to understand time-series data we need to first examine how pandas represents dates, time, and intervals of time. pandas provides extensive built-in facilities to represent these concepts as the representations of these concepts are not implemented by Python or NumPy robustly enough to handle the many concepts needed to process time-series data.

Some of the additional capabilities include being able to transform data across different frequencies and to apply different calendars to take into account things such as business days and holidays in financial calculations.

The datetime, day, and time objects

The datetime object is part of the datetime library and not a part of...