4

Handling Non-Daily Data

When Prophet was first released, it was assumed all data would be collected on a daily scale, with one row of data per day. It has since grown to handle many different granularities of data, but because of its historical conventions, there are a few things to be cautious of when working with non-daily data in Prophet.

In this chapter, you will look at monthly data (and in fact, this is applicable to any data that is measured in timeframes greater than a day) and see how to change the frequency of predictions to avoid unexpected results. You will also look at hourly data and observe an additional component in the components plot. Finally, you will learn how to handle data that has regular gaps along the time axis.

Get Forecasting Time Series Data with Prophet - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.