Pandas Sum Rows Value Based On Condition In Python Dataframe Stack

Pandas Sum Rows Value Based On Condition In Python Dataframe Stack