I have a 3d list
l=[ [ [1,"ab",119.0] ] , [ [2,"cd",129.0] ] , [ [ 3,"ef",139.0] ] ]
Code
import pandas as pd , numpy as np
l=[ [ [1,"ab",119.0] ] , [ [2,"cd",129.0] ] , [ [ 3,"ef",139.0] ] ]
b=np.array(l)
print(pd.DataFrame(l))
print(pd.DataFrame(b))
Conversion of this list to data frame is possible . But when I convert this list to array and then convert the array to data frame I'm getting value Error -Must pass 2d input . Why is this error is generated in case of numpy array and not in list ???