I have a list of list that I would like to make it as a row. The closest I got was using this post. However, I could not get my answer.
For example lets say I have a testarray
of values,
([[ 26.85406494],
[ 27.85406494],
[ 28.85406494],
[ 29.85406494],
[ 30.85406494],
[ 31.85406494],
[ 32.85406494],
[ 33.85406494],
[ 34.85406494],
[ 35.85406494],
[ 36.85406494],
[ 37.85406494],
[ 38.85406494],
[ 39.85406494],
[ 40.85406494],
[ 41.85406494]])
I need like as a pandas
DataFrame row like this,
Row_value
0 26.85406494
1 27.85406494
2 29.85406494
...
I tried the following,
df = pd.DataFrame({'Row_value':testarray})
I get an error,
ValueError: If using all scalar values, you must pass an index
How can I pass those values with an index?