Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas rename columns whitespace with underscore

dataframe.columns = list(map(lambda x: x.replace(' ', '_'),
                                 dataframe.columns))
 
PREVIOUS NEXT
Tagged: #pandas #rename #columns #whitespace #underscore
ADD COMMENT
Topic
Name
7+6 =