I have a Pandas DataFrame that looks like this:
NAME total total_temp
ID
1 CVS [abc1] [cba, xyzzy01]
2 Costco [bcd2, 22] [dcb, xyzzy02]
3 Apple [cde3] [edc, xyzzy03]
I want to add create a new column total_temp_2 so that the data looks like this:
NAME total total_temp total_temp_2
ID
1 CVS [abc1] [cba, xyzzy01] [abc1, cba, xyzzy01]
2 Costco [bcd2, 22] [dcb, xyzzy02] [bcd2, 22, dcb, xyzzy02]
3 Apple [cde3] [edc, xyzzy03] [cde3, edc, xyzzy03]
I feel like I could guess my way through really inefficient ways to concatenate the lists, but I suspect I'm missing something I don't know about Pandas.
How can i achieve this operation using pandas?