From: Juan Moran on
Hello
I have a serie like the one shown below
2
4
6
Nan
Nan
Nan
-2
-6
-4
Nan
3
4
Nan
Nan
....

What I get is the average of the first group of positive values, and assign this value to the highest in this subset. Similarly for the negative subset, and so with all the subsets that I have.

I would appreciate to help me
Thanks in advance and best regards