mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-29 23:06:49 +00:00
WIP: remove python Series.nonzero warning (#931)
* add to_numpy() * remove .values
This commit is contained in:
parent
d21b0cf4fd
commit
f9adb9623e
1 changed files with 1 additions and 1 deletions
|
|
@ -896,7 +896,7 @@ class Prophet(object):
|
|||
first = self.history['ds'].min()
|
||||
last = self.history['ds'].max()
|
||||
dt = self.history['ds'].diff()
|
||||
min_dt = dt.iloc[dt.values.nonzero()[0]].min()
|
||||
min_dt = dt.iloc[dt.to_numpy().nonzero()[0]].min()
|
||||
|
||||
# Yearly seasonality
|
||||
yearly_disable = last - first < pd.Timedelta(days=730)
|
||||
|
|
|
|||
Loading…
Reference in a new issue