Python 3: TypeError: '>' not supported between instances of 'str' and 'int' -
i'm new user of python
. have changed python 2.7 python 3.6
, having trouble 1 line of code worked before in python 2.7
. please can line below:
paidgrouped_large = paidgrouped.loc[paidgrouped['gross incurred inf'].astype(int) > paidgrouped['largeclaimcutoff'].astype(int), :].set_index('claim', drop=true)
which gives me error:
typeerror: '>' not supported between instances of 'str' , 'int'
both columns columns of numbers , there no null data. have idea why it's not working?
Comments
Post a Comment