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)

Time-Series Modelling

A time-series is a measurement of one or more variables over a period of time and at a specific interval. Once a time-series is captured, analysis is often performed to identify patterns in the series, in essence, determining what is happening as time goes by. This ability to analyze time-series data is essential in the modern world, be it in order to analyze financial information or to monitor exercise on a wearable device and match your exercises to goals and diet.

pandas provides extensive abilities for modeling time-series data. In this chapter, we will examine many of these capabilities, including:

  • Creating time series with specific frequencies
  • Representation of dates, time, and intervals
  • Representing a point in time with a Timestamp
  • Using a Timedelta to represent a time interval
  • Indexing using DatetimeIndex
  • Creating time-series with specific frequencies...