mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-14 20:48:08 +00:00
Fix FutureWarning from Pandas 0.24.0. (#830)
* Fix FutureWarning from Pandas 0.24.0. Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com> * Stay compatible with older versions of pandas. Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com>
This commit is contained in:
parent
ef670eaf6c
commit
bd0979244d
1 changed files with 1 additions and 1 deletions
|
|
@ -877,7 +877,7 @@ class Prophet(object):
|
|||
first = self.history['ds'].min()
|
||||
last = self.history['ds'].max()
|
||||
dt = self.history['ds'].diff()
|
||||
min_dt = dt.iloc[dt.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