Answers for "pandas rename columns whitespace with underscore"

0

pandas rename columns whitespace with underscore

dataframe.columns = list(map(lambda x: x.replace(' ', '_'),
                                 dataframe.columns))
Posted by: Guest on July-16-2021

Code answers related to "pandas rename columns whitespace with underscore"

Python Answers by Framework

Browse Popular Code Answers by Language