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

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -