i have a list. which has 8 lists inside it and each list have 50 elements
ex - [[list 1 with 50 elements ],[list 2 with 50]........,[list 8 with 50]]
i want to write the list to a CSV file as all 8 lists inside the outer list as 8 columns and 50 items in each.But when i try to write it it brings an error message saying i need 50 columns instead of 8. how to fix this problem?
df = ps.DataFrame( data = newresult , columns=['1','2','3','4','5','6','7','8'])
df.to_csv("k-mean-test.csv", index = False)