You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/04/20 11:14:24 UTC
[GitHub] [superset] dpgaspar commented on a change in pull request #14228: chore(prophet): bump prophet to 1.0.1
dpgaspar commented on a change in pull request #14228:
URL: https://github.com/apache/superset/pull/14228#discussion_r616586679
##########
File path: superset/utils/pandas_postprocessing.py
##########
@@ -631,14 +631,14 @@ def _prophet_fit_and_predict( # pylint: disable=too-many-arguments
Fit a prophet model and return a DataFrame with predicted results.
"""
try:
- prophet_logger = logging.getLogger("fbprophet.plot")
+ prophet_logger = logging.getLogger("prophet.plot")
prophet_logger.setLevel(logging.CRITICAL)
- from fbprophet import Prophet # pylint: disable=import-error
+ from prophet import Prophet # pylint: disable=import-error
prophet_logger.setLevel(logging.NOTSET)
except ModuleNotFoundError:
- raise QueryObjectValidationError(_("`fbprophet` package not installed"))
+ raise QueryObjectValidationError(_("`prophet` package not installed"))
Review comment:
nit: we could add a really simple test here, to assert to can handle `prophet` not being installed and increase coverage by a bit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org