diff --git a/ggplot/stats/smoothers.py b/ggplot/stats/smoothers.py index 5a8fbf37..2198a3f8 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 @@ -11,7 +11,7 @@ import datetime date_types = ( - pd.tslib.Timestamp, + pd.Timestamp, pd.DatetimeIndex, pd.Period, pd.PeriodIndex, diff --git a/ggplot/utils.py b/ggplot/utils.py index d0d5dfb6..6c9a92f7 100644 --- a/ggplot/utils.py +++ b/ggplot/utils.py @@ -78,7 +78,7 @@ def is_iterable(obj): return False date_types = ( - pd.tslib.Timestamp, + pd.Timestamp, pd.DatetimeIndex, pd.Period, pd.PeriodIndex,