How can I create two scenarios that will increase longest dry period by one day and two days, respectively in my rainfall data
I’m relatively new to python. I have a data frame containing rainfall data. I would like to create function with a ‘scenario A’ that will increase the longest dry period (days with rainfall <= 0) by one day and another ‘scenario B’ that will increase the period by two days. The codes below shoes how far I have come. It does the function I want for scenario A, but now I don’t know how to incorporate scenario B into the function, and still get the outputs (specified in code below) that I need for both scenarios. Can anyone help please?