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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -