I have the following dataframe created:
import pandas as pd
from numpy.random import randint
dict = {'Name':['Martha', 'Tim', 'Rob', 'Georgia'],
'Maths':[87, 91, 97, 95],
'Science':[83, 99, 84, 76]
}
df = pd.DataFrame(dict)
I want to add a location column and for a particular user Tim, I want to add location. Any short way to do it?