Iteratively source a value from a dictionary
I have a data set where I know a limited number of values and based on other values in a data set I can figure out what the subsequent values are. I could do this with a huge if function, but I know long ago someone (in a job with code I no longer have access to) showed me how to source these values from a dictionary using lambda and apply.