Hello I would like to calculate the average of days column for each Name group at each Time. The average at each Time for each group should be calculated only based on the elements of the rows of the Days which are larger than 0. Any feedback would be highly appreciated ..
Name Time Days Average John 2021-12-02 0 0 John 2021-12-03 2 0 John 2021-12-05 9 2 John 2021-12-07 0 5.5 John 2021-12-10 10 5.5 Larry 2021-12-02 20 0 Jim 2021-12-09 20 0 Jim 2021-12-10 20 20 Jim 2021-12-12 40 20 Jim 2021-12-12 0 26.6 Juli 2021-11-09 0 0 Juli 2021-11-10 0 0 Juli 2021-11-12 40 0 Juli 2021-11-18 0 40 Juli 2021-11-12 0 40 Juli 2021-11-18 2 40 Juli 2021-11-19 0 21