I have a df with 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 count = 0. Otherwise they retain their values.
I tried the mask option & that doesn't work. Thanks for your help.