Re: pandas creating a new column based on row values
It works. Thank you very much. :) -- https://mail.python.org/mailman/listinfo/python-list
Re: pandas creating a new column based on row values
On Tuesday, March 28, 2017 at 3:36:57 PM UTC-4, zlju...@gmail.com wrote: > [snip] > > Can I somehow generate a new column by concatenating values for the other > columns in a row? > Try this (not tested): def myfunc(row): return 'Start_{}_{}_{}_{}_End'.format(row['coverage'], row['name'],