pasztora
10/18/2019 - 8:48 AM

Combining multiple columns to one

# Combining 2 or more columns into a new one, it will be converted to a string
LogBook_updated["Batch-Strain"] = LogBook_updated[["Batch ID", "Strain"]].apply(lambda x: " - ".join(x.map(str)), axis=1)