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

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

在使用 Python 库时 'fbprophet' 它抛出错误,TypeError: 'module' object is not callable

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

执行时会抛出这个错误,

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

使用

解决
m = Prophet.Prophet(weekly_seasonality= True)