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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -