#!/usr/bin/env python # coding: utf-8 # # Challenge 2 - Update Users # # We at CashBox would like you to update the user with email address kimberly@yahoo.com to have the last name "Deal". # # There is a misspelling of a user whose username is **jeffrey**. It should only be one `f`, **jefrey**. # # There are a couple ways to make this change happen, let's see what you can figure out! # # After you've completed the TODO's click the `Run Tests` button # # *Need a little extra help? Check out the [Treehouse Forum](https://teamtreehouse.com/community?instruction=4572).* # In[1]: # 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) # In[2]: ## CHALLENGE - Update users ## # TODO: Update kimberly@yahoo.com to have the last name of "Deal" # TODO: Update the username jeffrey to jefrey (only one f) # Return the whole data frame users # In[3]: check(__name__, 'Update users')