Skip to content

Commit

Permalink
Merge pull request #1811 from gro1m/gro1m/replace-append-with-pd-concat
Browse files Browse the repository at this point in the history
replace append with pd.concat
  • Loading branch information
miguelgfierro authored Aug 15, 2022
2 parents 210bcb7 + 1031526 commit 06be8bc
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 06be8bc

Please sign in to comment.