replace white spaces by underscores code example
Example: replace whitespace into underscore in column names
# Replace any space in Column Names with Underscore:
dete_survey_updated.columns = dete_survey_updated.columns.str.replace(' ', '_')
# Replace any space in Column Names with Underscore:
dete_survey_updated.columns = dete_survey_updated.columns.str.replace(' ', '_')