I have a dataframe (df) that looks like this:
environment event time 2017-04-28 13:08:22 NaN add_rd
Now my goal is for each add_rd in the event column, the associated NaN-value in the environment column should be replaced with a string RD.
As per @Zero's comment, use pd.DataFrame.loc and Boolean indexing:
df.loc[df['event'].eq('add_rd') & df['environment'].isnull(), 'environment'] = 'RD'