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' #8

Open
onurdogan opened this issue Oct 3, 2023 · 3 comments
Open

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

onurdogan opened this issue Oct 3, 2023 · 3 comments

Comments

@onurdogan
Copy link

Hi Till,

I am honoured to inform you that I have earned gold medal in the program crashing category again. I was competing in the 'Read Proportions > Calculate bar chart' section and encountered an [x_x] unexpected error [x_x], despite the accurate plotting of the heatmap and pie chart. This was a first-time occurrence, and the function had previously been functioning properly.

best, Onur.

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/bin/taxontabletools", line 33, in <module> sys.exit(load_entry_point('taxontabletools==1.4.8', 'console_scripts', 'taxontabletools')()) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/taxontabletools/__main__.py", line 1696, in main read_proportions_bar(taxon_table_7_path, read_proportions_bar_taxonomic_level, path_to_outdirs, width_read_props_bar, heigth_read_props_bar, template, font_size, color_discrete_sequence) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/taxontabletools/read_proportions.py", line 292, in read_proportions_bar plot_df = plot_df.append(df) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/core/generic.py", line 6204, in __getattr__ return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has no attribute 'append'

Screenshot by Dropbox Capture

@TillMacher
Copy link
Owner

This should be a quick fix. Maybe I'll manage over the weekend. Time is very limited this October :D

@onurdogan
Copy link
Author

Hi again,
Take your time. I also downgraded my pandas' latest version to 1.5.3 with pip install pandas==1.5.3 and turned back fromwriter.close() to writer.save()again, it is working properly right now.
enjoy, Onur

@lmoliner
Copy link

Hi again, Take your time. I also downgraded my pandas' latest version to 1.5.3 with pip install pandas==1.5.3 and turned back fromwriter.close() to writer.save()again, it is working properly right now. enjoy, Onur

This also worked for me to solve an error during replicate merging.

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

3 participants