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()