replace whitespace into underscore in column names 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(' ', '_')