Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mowangshao opened this issue Oct 30, 2018 · 3 comments
Open

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

mowangshao opened this issue Oct 30, 2018 · 3 comments

Comments

@mowangshao
Copy link

Using TensorFlow backend.
(111, 1)
Traceback (most recent call last):
File "textClassifierHATT.py", line 55, in
for idx in range(data_train.review.shape[0]):
File "/root/anaconda3/envs/py2/lib/python2.7/site-packages/pandas/core/generic.py", line 3081, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'review'

@mowangshao
Copy link
Author

for idx in range(data_train.review.shape[0]):
text = BeautifulSoup(data_train.review[idx])
I find there are many attribute 'review' is used but I can not find the 'review' in google. How can I solve the problem?

@mowangshao
Copy link
Author

Em, I use the tensorflow-cpu version.

@mowangshao
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant