Change deprecated append to concat (#2114)

This commit is contained in:
Kha 2022-05-22 20:18:14 +03:00 committed by GitHub
parent cc5484c4e3
commit 10310ceb2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -893,7 +893,7 @@ class Prophet(object):
group_cols = new_comp['col'].unique()
if len(group_cols) > 0:
new_comp = pd.DataFrame({'col': group_cols, 'component': name})
components = components.append(new_comp)
components = pd.concat([components, new_comp])
return components
def parse_seasonality_args(self, name, arg, auto_disable, default_order):

View file

@ -125,7 +125,7 @@ class TestProphet(TestCase):
train1 = DATA.head(N // 2).copy()
train2 = DATA.head(N // 2).copy()
train2['y'] += 10
train = train1.append(train2)
train = pd.concat([train1, train2])
future = pd.DataFrame({'ds': DATA['ds'].tail(N // 2)})
forecaster = Prophet()
forecaster.fit(train)