I have the Yelp dataset and I want to count all reviews which have greater than 3 stars. I get the count of reviews by doing this:
reviews.groupby(\'business
You can try to do :
reviews[reviews['stars'] > 3].groupby('business_id')['stars'].count()