mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-07-03 03:59:00 +00:00
Replace functools.reduce() with pd.concat() to concat dataframes in cross_validation
This commit is contained in:
parent
e8ddded4fe
commit
df8e39ae15
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ def cross_validation(model, horizon, period=None, initial=None):
|
|||
], axis=1))
|
||||
|
||||
# Combine all predicted pd.DataFrame into one pd.DataFrame
|
||||
return reduce(lambda x, y: x.append(y), predicts).reset_index(drop=True)
|
||||
return pd.concat(predicts, axis=0).reset_index(drop=True)
|
||||
|
||||
def prophet_copy(m, cutoff=None):
|
||||
"""Copy Prophet object
|
||||
|
|
|
|||
Loading…
Reference in a new issue