Reader small image

You're reading from  Forecasting Time Series Data with Facebook Prophet

Product typeBook
Published inMar 2021
Reading LevelBeginner
PublisherPackt
ISBN-139781800568532
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Greg Rafferty
Greg Rafferty
author image
Greg Rafferty

Greg Rafferty is a data scientist in San Francisco, California. With over a decade of experience, he has worked with many of the top firms in tech, including Google, Facebook, and IBM. Greg has been an instructor in business analytics on Coursera and has led face-to-face workshops with industry professionals in data science and analytics. With both an MBA and a degree in engineering, he is able to work across the spectrum of data science and communicate with both technical experts and non-technical consumers of data alike.
Read more about Greg Rafferty

Right arrow

Creating multi-day holidays

Sometimes, a holiday or other special event will span several days. Fortunately, Prophet includes functionality to handle these scenarios via the window arguments. The holidays DataFrame we have been building to populate our holidays in the previous examples can have the optional columns of 'lower_window' and 'upper_window'. These columns specify additional days either before or after the main holiday that Prophet will model.

For example, in the previous example, we modeled Christmas and Christmas Eve as two different holidays. Another method would have been just to model Christmas but include a 'lower_window' of 1, telling Prophet to include a single day before Christmas as part of the holiday. This assumes, of course, that Christmas Eve will always fall on the day before Christmas. If, however, Christmas Eve were a holiday that floated and did not always fall immediately before Christmas, this window method would not be...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Forecasting Time Series Data with Facebook Prophet
Published in: Mar 2021Publisher: PacktISBN-13: 9781800568532

Author (1)

author image
Greg Rafferty

Greg Rafferty is a data scientist in San Francisco, California. With over a decade of experience, he has worked with many of the top firms in tech, including Google, Facebook, and IBM. Greg has been an instructor in business analytics on Coursera and has led face-to-face workshops with industry professionals in data science and analytics. With both an MBA and a degree in engineering, he is able to work across the spectrum of data science and communicate with both technical experts and non-technical consumers of data alike.
Read more about Greg Rafferty