AttributeError: 'DataFrame' object has no attribute 'append'
Opened this issue · 1 comments
user: ~/moses$ python scripts/run.py
Traceback (most recent call last):
File "scripts/run.py", line 7, in
from moses.models_storage import ModelsStorage
File "/home/drkinshuk/moses/moses/init.py", line 2, in
from .metrics import get_all_metrics
File "/home/drkinshuk/moses/moses/metrics/init.py", line 1, in
from .metrics import get_all_metrics,
File "/home/drkinshuk/moses/moses/metrics/metrics.py", line 11, in
from .utils import compute_fragments, average_agg_tanimoto,
File "/home/drkinshuk/moses/moses/metrics/utils.py", line 24, in
_mcf.append(_pains, sort=True)['smarts'].values]
File "/home/drkinshuk/anaconda3/envs/my-rdkit-env/lib/python3.8/site-packages/pandas/core/generic.py", line 5989, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'
#Please help me, how to solve this error and why it shows this error
I guess you have installed pandas>=2.0. Try with a version of pandas<2.0