Aug-12-2022, 08:18 AM
on line 40
you convert AACounty['Year'] to a float
then on line 63
you try to compare to a string
AACounty['Year'] = AACounty['Year'].astype(float, errors = 'raise')
you convert AACounty['Year'] to a float
then on line 63
if AACounty['Year'] == "2020":
you try to compare to a string