Prophet FitProphet Fit

We fit the model by instantiating a new Prophet object. Any settings to the forecasting procedure are passed into the constructor. Then you call its .fit() method and pass in the historical dataframe. Fitting should take 1-5 seconds.


  1. Import Prophet from prophet;
  2. Initialize the Prophet object;
  3. Pass the historical DataFrame to the method.

Everything was clear?

Section 1. Chapter 8

Start learning today and achieve
coding mastery

  • Master Python, SQL, JavaScript & more.
  • Learn with Step-by-Step Lessons.
  • Get Ready for Real-World Projects.
  • Earn a Certificate Upon Completion.