I have a series ( a single col in a df) with 3 possible values:
Stable, Increase, Decresae
, and I want to mark all the areas between a Increase to the subsequent Decrease. So for the values:
Stable
Stable
Stable
Increase
Increase
Stable
Stable
Decrease
Stable
Increase
Stable
Decrease
I will get: -,-,-,+,+,+,+,-,-,+,+,-
What is the best way to do so?