Closed JanetMatsen closed 8 years ago
omit the trailing commas. Can use regular expressions to delete one or more "," characters at the end of the string.
Alter def concat_phylo_columns(dataframe) in bacteriopop_utils.py
def concat_phylo_columns(dataframe)
dataframe['phylo_concat'] = \ dataframe['phylo_concat'].astype(str).apply(lambda s: s.rstrip(','))
omit the trailing commas. Can use regular expressions to delete one or more "," characters at the end of the string.
Alter
def concat_phylo_columns(dataframe)
in bacteriopop_utils.py