DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+8 =
Submit