Search code examples
pythonfacebook-prophet

what is the difference between freq='M' and freq='D' in fbprophet?


in fbprophet library

what is the difference between:

first:

future = model.make_future_dataframe(periods=7,freq='M')

Second:

future = model.make_future_dataframe(periods=7,freq='D')

Solution

  • Basically, fbprophet's make_future_dataframe() as mentioned here, is a wrapper on pd.date_range. It supports a wide range of freq options, from which D stands for day and M for month. You can check out all the possibilities in pandas docs.