From 670ff04f31c34f09d484add2d2a716d09b9e5622 Mon Sep 17 00:00:00 2001 From: Tang Li Qun Date: Sat, 2 Jun 2018 17:48:45 +0900 Subject: [PATCH] change to imports for pandas Timestamp module pandas 0.23.0 ggplot 0.11.5 changed `from pandas.lib import Timestamp` to `from pandas import Timestamp`, might break compability with old pandas. an alternative may be to do a try except....? which might look pretty bad, but I haven't really researched into how to support multiple pandas versions with different import endpoints. reference: https://stackoverflow.com/questions/50591982/importerror-cannot-import-name-timestamp --- ggplot/stats/smoothers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggplot/stats/smoothers.py b/ggplot/stats/smoothers.py index 5a8fbf37..88883044 100644 --- a/ggplot/stats/smoothers.py +++ b/ggplot/stats/smoothers.py @@ -1,7 +1,7 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np -from pandas.lib import Timestamp +from pandas import Timestamp import pandas as pd import statsmodels.api as sm from statsmodels.nonparametric.smoothers_lowess import lowess as smlowess