Python Merge Some Columns of a Dataframe in to a new column

32 Views Asked by At

I have a data frame as shown in the image below. The first column is Date/Time while the other columns are voltage values. Only a single value column will have a voltage in any row. I would like to merge the voltage columns into a single column. I could do this with a cumbersome for-loop and I am hoping for some panda merge that would do this. I have looked at many merge related posts and could not find, or did not recognize, a solution to this problem. Any help for this would be greatly appreciated. Dataframe with Date/time in column 1 and values in columns 2 - 5

0

There are 0 best solutions below