-
Notifications
You must be signed in to change notification settings - Fork 25
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 'sort_values' #65
Comments
Thank you, @sminot, greatly appreciated! 👍 |
@sminot sorry for my late reply I was on holiday. Thank you for the great suggestions! 👍 |
After following the installation I'm having the exact same issue reported by @sminot. Updating pandas and numexpr didn't solve the problem. |
@sminot Would you please provide the output for |
Hi, After installing traitar from virtual env and installing the older version of pandas:
I got this error:
Any idea on what is going on wrong or how to solve it? |
Thank you for the reminder. Your error indicates that the bash process substitution is not working. This is because /bin/sh is being used instead of /bin/bash although this is hard coded. I'm not really sure why this would happen. Can you please make sure /bin/bash is the standard bash? Many thanks, Aaron |
@aweimann: Circumventing the BASH pipe syntax (in case you want to get rid of the requirement) you could read the list via stdin. |
Hi @aweimann Finally it worked! I followed your suggestions and after changing to /bin/bash, it went fine. |
I'm not sure if this repo is maintained anymore, but Should we consider this package no longer maintained? I could fork this package and try to update the pandas code (and maybe add some unit tests too), but @aweimann will you accept the pull request? |
Sorry I haven't had much time to look after the repo but will take a look in the next few days. |
Thanks for the quick response! Let me know if I can help. Traitar seems to still be the state-of-the-art, given that the code from Farrell et al., 2018 seems to no longer be available (and the paper was never published in journal, as far as I can tell). |
Using the docker image for aweimann/traitar:release (38eaf28de0a1), I got the following error:
FIX: My guess is that this is a problem with the version of Pandas in the image. So I updated
pandas
in the container topandas==0.20.3
withpip
. I also updatednumexpr
to2.4.6
for compatibility with that version ofpandas
.RESULT: After making those two updates,
traitar
ran with no errors.SUGGESTION: Pin all the various versions of python packages that work (
pip freeze > requirements.txt
) and then use that list to install from in theDockerfile
(pip install -r requirements.txt
) to avoid a confounding effect of the most recent version at build time.The text was updated successfully, but these errors were encountered: