Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'DataFrame' object has no attribute 'append' #107

Open
28YOGESH opened this issue Apr 25, 2023 · 1 comment
Open

AttributeError: 'DataFrame' object has no attribute 'append' #107

28YOGESH opened this issue Apr 25, 2023 · 1 comment

Comments

@28YOGESH
Copy link

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

@drigoni
Copy link

drigoni commented Apr 28, 2023

I guess you have installed pandas>=2.0. Try with a version of pandas<2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants