I have a dictionary, and want to create a new column which references this dict:
df['new'] = df['new'].apply(lambda x: dict.get(x))
.apply is notorious for being slow, is there a way of doing this operation and still taking advantage of numpy vectorization speed?