We at CashBox believe that referrers are a great asset to our product. We'd like to know the top referrers with verified email addresses, so that we can send them some motivational emails.
Currently, anyone with 5 or more referrals is considered a top referrer.
In the cell labelled CHALLENGE, follow the instructions to return what is required. Use Kernel > Restart and run all cells
to check your work. If all the tests pass, you got it!
# Setup
import os
import pandas as pd
from tests.helpers import check
pd.options.display.max_rows = 10
users = pd.read_csv(os.path.join('data', 'users.csv'), index_col=0)
# Pop out a quick sanity check
len(users)
## CHALLENGE - Find the top referrers ##
# TODO: Select users that have a referral count greater than or equal to 5 and have verified emails
# Return the dataframe
users
check(__name__, 'Find the top referrers')