Skip to content

Commit

Permalink
replace append with pd.concat
Browse files Browse the repository at this point in the history
  • Loading branch information
gro1m authored Aug 11, 2022
1 parent b704c42 commit 1031526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recommenders/models/deeprec/DataModel/ImplicitCF.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1031526

Please sign in to comment.