Python function remove all whitespace from all character columns in dataframe

56

Python function remove all whitespace from all character columns in dataframe -

df.columns = df.columns.str.replace(' ', '')

Comments

Submit
0 Comments