I\'m working with the following df:
c.sort_values(\'2005\', ascending=False).head(3) GeoName ComponentName IndustryId IndustryClassification Descri
another way is using apply, one liner:
apply
cols = ['col1', 'col2', 'col3'] data[cols] = data[cols].apply(pd.to_numeric, errors='coerce', axis=1)