Please help me. I'm a beginner in Python. I have an Excel file which contains the following rows:
[[12, 11.17], [8, 29.62], [14, 18.74]]
[[2, 10.98], [16, 113.72]]
....etc
Each row contains different quantities of values. I need to create DataFrame which will look like
A | B
12 |11.17
8 |29.62
14 |18.74
2 |10.98
...
Column A contains left integer number in bracket, Column B contains number after comma.
I try to save each row from Excel file to variables, for example:
z1=[[12, 11.17], [8, 29.62], [14, 18.74]]
z2=[[2, 10.98], [16, 113.72]]
and then do:
zf1 = pd.DataFrame(z1)
zf2 = pd.DataFrame(z2)
frames = [zf1, zf2]
res = pd.concat(frames)
But I have more 100 rows! What should I do to create dataframe with two columns from this file? Thanks.