I have python string list, which i want to convert into pandas dataframe with predefined columns. I have tried following code but it shows error.
I have tried following code.
import pandas as pd
list = ['jack', '9860', 'datasc', 'vill','0', 'stack']
df = pd.DataFrame(list, columns= ['name', 'no','job'])
ValueError: Shape of passed values is (1, 6), indices imply (3, 6)