From 1031526a38827ddbedeb549deb2ae3b4aaa95f5b Mon Sep 17 00:00:00 2001 From: Michael Gross Date: Thu, 11 Aug 2022 09:32:52 +0200 Subject: [PATCH] replace append with pd.concat --- recommenders/models/deeprec/DataModel/ImplicitCF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recommenders/models/deeprec/DataModel/ImplicitCF.py b/recommenders/models/deeprec/DataModel/ImplicitCF.py index 9fea413ce3..c659257e48 100644 --- a/recommenders/models/deeprec/DataModel/ImplicitCF.py +++ b/recommenders/models/deeprec/DataModel/ImplicitCF.py @@ -70,7 +70,7 @@ def _data_processing(self, train, test): list: train and test pandas.DataFrame Dataset, which have been reindexed and filtered. """ - df = train if test is None else train.append(test) + df = train if test is None else pd.concat([train, test],axis=0,ignore_index=True) if self.user_idx is None: user_idx = df[[self.col_user]].drop_duplicates().reindex()