I have a pandas dataframe where some of the rows in a column named 'Case_num' have the same value. I want to fill the column named 'Work_Hrs' with a sum of the non-zero values in that column if 'Case_num' is the same. For example, the input data is:
I want to fill the column 'Work_Hrs' with a sum of non zero values, i.e. 6 in this case, see below:

Thank you.
