I am facing the following problem. For the data attached I want to add a column that sums up the column “gsv_scaled” based on the following conditions:
- The ticker should be the same as in the row a new value is calculated for
- The date should be within the range of 180 days prior to the date of the row the new value is calculated for.
I am grateful for any suggestions and approaches to this.
Thanks for your help!
Marian
0 Response to Summing up columns based on a range condition
Post a Comment