I would like to replace ':'
,' '
, '-'
, '('
, and ')'
with an underscore for the items in this list:
columns = ['Region', 'Cat', 'Bld', 'Fbld', 'Ht(m)', 'H:W', 'Fperv', 'Froof', 'wall type', 'roof type', 'road-type', 'Tmn', 'Tmx', 'Notes']
So that:
columns = ['Region', 'Cat', 'Bld', 'Fbld', 'Ht_m', 'H_W', 'Fperv', 'Froof', 'wall_type', 'roof_type', 'road_type', 'Tmn', 'Tmx', 'Notes']
The goal is to replace all special characters and space so that it can be read into an sql table. Thanks for any help.