mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-06-30 03:37:53 +00:00
Replace to_numpy() with values to maintain pd 0.23.4 support
This commit is contained in:
parent
28cd55241f
commit
df6bef8920
1 changed files with 1 additions and 1 deletions
|
|
@ -902,7 +902,7 @@ class Prophet(object):
|
|||
first = self.history['ds'].min()
|
||||
last = self.history['ds'].max()
|
||||
dt = self.history['ds'].diff()
|
||||
min_dt = dt.iloc[dt.to_numpy().nonzero()[0]].min()
|
||||
min_dt = dt.iloc[dt.values.nonzero()[0]].min()
|
||||
|
||||
# Yearly seasonality
|
||||
yearly_disable = last - first < pd.Timedelta(days=730)
|
||||
|
|
|
|||
Loading…
Reference in a new issue