pandas rename columns whitespace with underscore

Solutions on MaxInterview for pandas rename columns whitespace with underscore by the best coders in the world

showing results for - "pandas rename columns whitespace with underscore"
Juan Sebastián
30 Apr 2017
1dataframe.columns = list(map(lambda x: x.replace(' ', '_'),
2                                 dataframe.columns))
similar questions