0

this is what i have (a 3D list) :

**

[  STOCK NAME                  
     last_price  price2      price3
 0         0.00     0.0        0.0
 1       870.95  7650.0  2371500.0
 2       870.95  7650.0  2371500.0
 3       870.95  7650.0  2371500.0
 4       877.30  7650.0  2371500.0
 5       879.20  6800.0  2381700.0]

**

I want to create a dataframe exactly like the list that I have above. how do I do so? thank you very much.. i tried pd.DataFrame(the_list) but it gave me this error: ValueError: Must pass 2-d input. shape=(190, 6, 3).. thanks

leren
  • 1
  • 3
  • Does this answer your question? [How to transform a 3d arrays into a dataframe in python](https://stackoverflow.com/questions/35525028/how-to-transform-a-3d-arrays-into-a-dataframe-in-python) – Dilara Gokay Jun 03 '22 at 07:50

0 Answers0