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

emotions = pd.get_dummies(data['emotion']).as_matrix() #29

Open
varsha2097 opened this issue Feb 21, 2020 · 2 comments
Open

emotions = pd.get_dummies(data['emotion']).as_matrix() #29

varsha2097 opened this issue Feb 21, 2020 · 2 comments

Comments

@varsha2097
Copy link

This line is giving attribute error: AttributeError: 'DataFrame' object has no attribute 'as_matrix'

@mickells
Copy link

replace the line with
emotions = pd.get_dummies(data['emotion']).values

@a092devs
Copy link

replace the line with emotions = pd.get_dummies(data['emotion']).values

Thanks for this!

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

3 participants