错误提示:E:/Python/Text/2.x.py:16: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal neg[2] = neg[1].apply(lambda x: [i for i in x if i not in stop]) #逐词判断是否停用词,思路同上
代码:
见图片
unicode编码有问题。准确处理一下编码