mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +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()
|
first = self.history['ds'].min()
|
||||||
last = self.history['ds'].max()
|
last = self.history['ds'].max()
|
||||||
dt = self.history['ds'].diff()
|
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 seasonality
|
||||||
yearly_disable = last - first < pd.Timedelta(days=730)
|
yearly_disable = last - first < pd.Timedelta(days=730)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue