Mapping a Pandas Column
Builds a new column based on an existing column as it indexes a dictionary. Similar to numpy.where
but specifically for dictionaries
d = {
'a': 1,
'b': 2,
'c': 3
}
df["Date"] = df["Member"].apply(lambda x: d.get(x))