Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python function remove all whitespace from all character columns in dataframe

df.columns = df.columns.str.replace(' ', '')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #function #remove #whitespace #character #columns #dataframe
ADD COMMENT
Topic
Name
3+2 =