How to convert list object to Pandas Dataframe with defined format?
Printed list has this output (Jupyter):
(u'variable', price threshold
0 13.5 100.0
1 10.0 NaN)
(u'standard', price threshold
0 12.5 300.0
1 11.0 NaN)
(u'fixed', price threshold
0 14.5 250.0
1 10.1 200.0
2 9.0 NaN)
(u'standing-charge', price
0 9)
Converted to Pandas Dataframe:
0 1
0 variable price threshold 0 13.5 100.0 1 10...
1 standard price threshold 0 12.5 300.0 1 11...
2 fixed price threshold 0 14.5 250.0 1 10...
3 standing-charge price 0 9
I need:
type price threshold
variable 13.5 100
variable 10.0 NaN
...
Please, help ;)
I needis not possible.