How do I sum values in a column that match a given condition using pandas?,"df.loc[df['a'] == 1, 'b'].sum()"