new dataframe from one row code example
Example: dataframe of one row
In [395]: df = pd.DataFrame([[1,1.23,'Hello']], columns=list('ABC'))
In [396]: df
Out[396]:
A B C
0 1 1.23 Hello
In [395]: df = pd.DataFrame([[1,1.23,'Hello']], columns=list('ABC'))
In [396]: df
Out[396]:
A B C
0 1 1.23 Hello