I have multiple columns that have the same name (ie. 3 columns named "box"), and I need to have one column that sums the values so that I can concatenate my dataframes. There are multiple instances of this needing to happen.
I've tried df1 = df.groupby(level=0, axis=1).sum()
but I get one column with no values. (Ie. in the first row, "box" : 9, "box" : 1, "box" : 4 should become one column named "box" with value of 14, but it's showing one column named "box" but no value.)