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

The problem in Tf-idf.ipynb #12

Open
alexfeng2 opened this issue May 6, 2019 · 0 comments
Open

The problem in Tf-idf.ipynb #12

alexfeng2 opened this issue May 6, 2019 · 0 comments

Comments

@alexfeng2
Copy link

hi, when i run the 04.01-06 sample code,

Create the target column--True for Nightlife businesses, and False otherwise

twobiz_reviews['target'] = twobiz_reviews.apply(lambda x: 'Nightlife' in x['categories'],
axis=1)
there is a error:
"ValueError: Cannot set a frame with no defined index and a value that cannot be converted to a Series"
and i use the yelp dataset v13
how to solve 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

1 participant