Python Applying Dataframe Value To A Dataframe When

Python Applying Dataframe Value To A Dataframe When