CSV в редакторе выглядит:
Review Text;Review Rating
['much', 'write', 'exactly', 'supposed', 'filters', 'pop', 'sounds', 'recordings', 'much', 'crisp', 'one', 'lowest', 'prices', 'pop', 'filters', 'amazon', 'might', 'well', 'buy', 'honestly', 'work', 'despite', 'pricing'];5.0
Читать CSV:
import csv
with open("../Data_filtered/reviews_Musical_Instruments.csv", "r") as csv_file:
reader = csv.reader(csv_file, delimiter=';', quotechar='|')
liste = []
for row in reader:
liste.extend(row)
Тогда я получаю:
liste =
['Review Text',
'Review Rating',
"['much', 'write', 'exactly', 'supposed', 'filters', 'pop', 'sounds', 'recordings', 'much', 'crisp', 'one', 'lowest', 'prices', 'pop', 'filters', 'amazon', 'might', 'well', 'buy', 'honestly', 'work', 'despite', 'pricing']",
'5.0']
Но мне нужно (без строки):
liste =
['Review Text',
'Review Rating', 'much', 'write', 'exactly', 'supposed', 'filters', 'pop', 'sounds', 'recordings', 'much', 'crisp', 'one', 'lowest', 'prices', 'pop', 'filters', 'amazon', 'might', 'well', 'buy', 'honestly', 'work', 'despite', 'pricing',
'5.0']