DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
replace all spacec column with underscore in pandas
import pandas as pd # remove spaces in columns name df.columns = df.columns.str.replace(' ','_')
PREVIOUS
NEXT
Tagged:
#replace
#spacec
#column
#underscore
#pandas
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit