I'm making a sublist of every row inside a csv file but i'm getting a single list back
wines_list = []
for row in wines:
wines_list.append(row)
print(wines_list)
This returns:
['id', 'country', 'description', 'designation', 'points', 'price',
'province', 'taster_name', 'title', 'variety', 'winery', 'fixed acidity',
'volatile acidity', 'citric acid', 'residual sugar', 'chlorides', 'free
sulfur dioxide', 'total sulfur dioxide', 'density', 'pH', 'sulphates',
'alcohol']
But i wan't it to append all values to sublist, and append that to wines_list
So i want wines_list to become something like:
[[1, 'netherlands', 'description of the wine', 'designation', 'points', 'price',
'province', 'taster_name', 'title', 'variety', 'winery', 'fixed acidity',
'volatile acidity', 'citric acid', 'residual sugar', 'chlorides', 'free
sulfur dioxide', 'total sulfur dioxide', 'density', 'pH', 'sulphates',
'alcohol'], ANOTHER SUB LIST HERE]