Search code examples
pythonmodulepypi

python fbprophet error, TypeError: 'module' object is not callable


On using the Python library 'fbprophet' it throw the error, TypeError: 'module' object is not callable

import fbprophet as Prophet
m = Prophet(weekly_seasonality= True) 

on executing it throws this error,

Traceback (most recent call last):

  File "<ipython-input-7-53e30b441246>", line 1, in <module>
    m = Prophet(weekly_seasonality= True)

TypeError: 'module' object is not callable


Solution

  • solved using

    m = Prophet.Prophet(weekly_seasonality= True)