I have a DF w' the following values:
id Count Exposure pct_affected 104 4 150,000 1.2 104 0 150,000 1.2
WHen I merged my 2 dataframes, the values from one carried onto the other. I need to set both columns Exposure & pct_affected to 0, when the count column = 0. Otherwise they retain their values.
I tried the mask option & that doesn't work. Thanks for your help.