TillMacher / TaxonTableTools

TaxonTableTools - A comprehensive, platform-independent graphical user interface software to explore and visualise DNA metabarcoding data
https://pypi.org/project/taxontabletools/
MIT License
21 stars 3 forks source link

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

Open onurdogan opened 1 year ago

onurdogan commented 1 year ago

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 commented 1 year ago

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

onurdogan commented 1 year ago

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 commented 7 months ago

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.