I am trying to sum up the values of a column based on if condition from 2 columns but I am getting error AttributeError: ‘numpy.int64’. Here is my object has no attribute ‘loc’
df3 = df3.loc[(df3[‘Feature Name’] == ‘GI – MIPS PI – Filter Scorecard Data Panel – Measures(All) – PI_HIE_1: Support Electronic Referral Loops by Sending Health Information Measure Checkbox’,) & (df3[‘Practice Management Software’] == ‘Intergy’), ‘Events’].sum()
df3
I was expecting it to return values of sum of events column
Sangeeta Malve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.