Closed charles-cowart closed 1 year ago
Needs unit test for the new behavior. I think it might be good to also lower-case the header of the output and raise an error if there is a duplicate, since we do that when taking the pre-prep file as input. Better to let the creator know and resolve it.
Ready for review! Ty @antgonza and @mmbryant23 for their help, suggestions, and mods!
generate_qiita_prep_file() renames certain columns, adds empty columns for missing columns, and reorders them before returning the df to the user. In this case, if tm300_8_tool and tm50_8_tool were instead named 'TM300 8 Tool' and 'TM50 8 Tool', they wouldn't be renamed to their proper names, two new columns with the proper names would be added, and the two old columns would be implicitly dropped in the reordering. This has been fixed.
Not yet fixed: additional columns will still be dropped. unit-tests not created.