Skip to Content
Machine Learning for Time Series Forecasting with Python
book

Machine Learning for Time Series Forecasting with Python

by Francesca Lazzeri
December 2020
Beginner to intermediate content levelBeginner to intermediate
224 pages
5h 54m
English
Wiley
Content preview from Machine Learning for Time Series Forecasting with Python

CHAPTER 3Time Series Data Preparation

In this chapter, I will walk you through the most important steps to prepare your time series data for forecasting models. Data preparation is the practice of transforming your raw data so that data scientists can run it through machine learning algorithms to discover insights and, eventually, make predictions.

Each machine learning algorithm expects data as input that needs to be formatted in a very specific way, so time series data sets generally require some cleaning and feature engineering processes before they can generate useful insights. Time series data sets may have values that are missing or may contains outliers, hence the need for the data preparation and cleaning phase is essential. Since the time series data has temporal property, only some of the statistical methodologies are appropriate for time series data. Good time series data preparation produces clean and well-curated data, which leads to more practical, accurate predictions.

Specifically, in this chapter we will discuss the following:

  • Python for Time Series Data – Python is a very powerful programming language to handle data, offering an assorted suite of libraries for time series data and excellent support for time series analysis. In this section of Chapter 3, you will see how libraries such as SciPy, NumPy, Matplotlib, pandas, statsmodels, and scikit-learn can help you prepare, explore, and analyze your time series data.
  • Time Series Exploration and Understanding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Time Series Forecasting in Python

Time Series Forecasting in Python

Marco Peixeiro

Publisher Resources

ISBN: 9781119682363Purchase Link