CVUA-RRW / FooDMe

A reproducible and scalable snakemake workflow for the analysis of DNA metabarcoding experiments, with a special focus on food and feed samples.
https://cvua-rrw.github.io/FooDMe
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Fix pandas CopyWarning #35

Closed gregdenay closed 2 years ago

gregdenay commented 2 years ago

Fix pandas CopyWarning #31 Replaced dataframe selection with direct reference by selecion with the .loc[] operator in concatenate_uniq() in workflow/rules/common.smk

Checklist

gregdenay commented 2 years ago

New problem in newer pandas version:

FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.

Need to fix before merge!

Warning comes for the rule filter_blast

gregdenay commented 2 years ago

Replaced

df.append(new_rows)

by

pd.concat([df, new_rows])