For the below table, how do I implement a Python equivalent of the following SUMIFS statement?
SUMIFS(A3:A7,B3:B7,"<="&C1,C3:C7,">0")
Code for the DataFrame:
dfp = pd.DataFrame({'Value': [1223, 34, 34, 345],
'Date': ['04/03/2020', '06/04/2020','08/06/2020','12/12/2020'],
'Tval' : [0.01,0.015,-0.023,-0.0005]})
The expected output is 1257.
