How can i filter a query and then do a group by
df.query("'result_margin' > 100").groupby(['city','season','toss_winner','toss_decision','winner'])['winner'].size()
I am getting this error
TypeError: '>' not supported between instances of 'str' and 'int'
I am trying to filter where result_margin is greater than 100 then groupby with the columns specified and print records