I have a excel file in which contains columns of value of current for diffrent configuration in the first column there is voltage but other parameters are in columnheader itself. How do i convert those column header to a diffrent column
input
import pandas as pd data1 = {'V1': [1, 2, 3, 4], '(T=27 v2=5)': [4, 5, 4, 8], '(T=140 v2=5)': [5, 9, 4, 12]} df = pd.DataFrame(data1)

desired output

Источник: https://stackoverflow.com/questions/781 ... ent-column