>>> with open('Book2.csv', 'rb') as f:
inpreader = csv.reader(f, delimiter=',')
for row in inpreader:
print ','.join(row)
IdNo, skillsList
BAXA0000206_NEENA_TIWARI_0.htm,[u'Training', u'E-Learning', u'PowerPoint', u'Teaching', u'Accounting', u'Team Management', u'Team Building', u'Microsoft Excel', u'Microsoft Office', u'Financial Accounting', u'Microsoft Word', u'Customer Service']
BAXA0000227_ABDUR_RAZZAQUE_0.htm,[u'Telecommunications', u'Data Center', u'ISO 27001', u'Management', u'BS25999', u'Technology', u'Information Technology...', u'Certified PMP\xae', u'Certified BS25999 Lead...']
BAXA0000261_Priya _ Lobo_0.htm,[u'Market Research', u'Segmentation', u'Marketing Strategy', u'Consumer Behavior', u'Experience Working with...']
我想找出skillsList每個技能的詞頻..我該怎麼辦呢?通過列表中的項目分組
感謝
哪裏頻率字段? –
skillsList。我想要每個技能的術語頻率。例如,培訓:45,電子學習:50 – user1946217
CSV文件的外觀如何? (我想你現在正在顯示你的代碼的輸出,而不是輸入) –