mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-20 09:03:39 +00:00
updated the change a bit to prevent unnessary copy operations
This commit is contained in:
parent
5bc6565c11
commit
e1a2b9c297
1 changed files with 3 additions and 1 deletions
|
|
@ -262,8 +262,10 @@ class Prophet(object):
|
||||||
raise ValueError('Found non-boolean in column ' + condition_name)
|
raise ValueError('Found non-boolean in column ' + condition_name)
|
||||||
df[condition_name] = df[condition_name].astype('bool')
|
df[condition_name] = df[condition_name].astype('bool')
|
||||||
|
|
||||||
df = df.reset_index(drop=True)
|
if df.index.name == 'ds':
|
||||||
|
df.index.name = None
|
||||||
df = df.sort_values('ds')
|
df = df.sort_values('ds')
|
||||||
|
df = df.reset_index(drop=True)
|
||||||
|
|
||||||
self.initialize_scales(initialize_scales, df)
|
self.initialize_scales(initialize_scales, df)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue