I am getting below error while converting Lists of list to dataframe:
raise ValueError('DataFrame constructor not properly called!') ValueError: DataFrame constructor not properly called!
I have used numpy to split the list and now need to convert those lists of list to a dataframe:
import numpy as np
import pandas as pd
def SplitList():
l = np.array([6,2,5,1,3,6,9,7,6])
n = 3
list = l.reshape((len(l)//n), n).T
print(list)
df = pd.DataFrame(list)