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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]