textClassifier icon indicating copy to clipboard operation
textClassifier copied to clipboard

some problem about data preprocess

Open kang1916 opened this issue 7 years ago • 5 comments

there is a problem about the panda usage:

AttributeError: 'DataFrame' object has no attribute 'review'

at line 46, 55: 46: data_train = pd.read_csv('labeledTrainData.tsv', sep='\t') 55 :for idx in range(data_train.review.shape[0]):

variable "data_train" does not got attribute "review"

===========

I have looked for different of pandas and the problem is still not fixed Any suggestion about this problem?

THANKS!!!

kang1916 avatar Sep 03 '18 09:09 kang1916

same problem.

pengyuan avatar Sep 13 '18 12:09 pengyuan

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

pengyuan avatar Sep 13 '18 12:09 pengyuan

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

Thanks!

kang1916 avatar Sep 14 '18 13:09 kang1916

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

Same problem. So, how can I fix it.

mowangshao avatar Nov 07 '18 11:11 mowangshao

I fixed it. wget just download a .html file, not real .tsv file.

see: https://raw.githubusercontent.com/MatthieuBizien/Bag-popcorn/master/labeledTrainData.tsv

Thanks. Now I have fixed it.

mowangshao avatar Nov 08 '18 06:11 mowangshao