Using data with regular gaps
Throughout your career, you may encounter datasets with regular gaps in reporting, particularly when the data was collected by humans who have working hours, personal hours, and sleeping hours. It simply may not be possible to collect measurements with perfect periodicity.
As you will see when we look at outliers in a later chapter, Prophet is robust in handling missing values. However, when that missing data occurs at regular intervals, Prophet will have no training data at all during those gaps to make estimations with. The seasonality will be constrained during periods where data exists but unconstrained during the gaps, and Prophet's predictions can see much larger fluctuations than the actual data displayed. Let's see this in action.
Suppose that Divvy's data had only been collected between the hours of 8am and 6pm each day. We can simulate this by removing data outside these hours from our DataFrame:
df = df[(df['ds&apos...