Skip to content

Commit

Permalink
Fixed error: 'DataFrame' object has no attribute 'append'
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonYansenZhao committed Sep 4, 2023
1 parent a605404 commit 40361f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions recommenders/models/rlrmc/RLRMCdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def _data_processing(self, train, validation=None, test=None, mean_center=True):
"""
# Data processing and reindexing code is adopted from https://github.com/Microsoft/Recommenders/blob/main/recommenders/models/ncf/dataset.py
# If validation dataset is None
df = train if validation is None else train.append(validation)
df = df if test is None else df.append(test)
df = train if validation is None else pd.concat([train, validation])
df = df if test is None else pd.concat([df, test])

# Reindex user and item index
if self.user_idx is None:
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
version += ".post" + str(int(time.time()))

install_requires = [
"pandas>1.5.2,<2.1", # requires numpy
"pandas>1.5.2,<1.6", # requires numpy
"scikit-learn>=1.1.3,<2", # requires scipy
"numba>=0.57.0,<1",
"lightfm>=1.17,<2",
"lightgbm>=3.3.2,<4",
"lightgbm>=3.3.2,<5",
"memory-profiler>=0.61.0,<1",
"nltk>=3.8.1,<4", # requires tqdm
"seaborn>=0.12.0,<1", # requires matplotlib
"transformers>=4.26.0,<5", # requires pyyaml, tqdm
"transformers>=4.27.0,<5", # requires pyyaml, tqdm
"category-encoders>=2.6.0,<3",
"jinja2>=3.1.0,<3.2",
"cornac>=1.15.2,<2", # requires tqdm
Expand All @@ -44,8 +44,8 @@
"scikit-surprise>=1.1.3",
"scrapbook>=0.5.0,<1.0.0", # requires tqdm, papermill
"hyperopt>=0.2.7,<1",
"notebook>=6.5.4,<8", # requires jupyter, ipykernel
"locust>=2.15.1,<3",
"notebook>=7.0.0,<8", # requires jupyter, ipykernel
"locust>=2.12.2,<3",
]

# shared dependencies
Expand Down

0 comments on commit 40361f4

Please sign in to comment.