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'], row['reports'], row['year']) df['New'] = df.apply(myfunc, axis=1) -- https://mail.python.org/mailman/listinfo/python-list