remove_consecutive_spaces

remove_consecutive_spaces(df_col)

Remove consecutive white spaces.

Parameters:df_col – a single dataframe column <class ‘pandas.core.series.Series’>
Returns:a single dataframe column <class ‘pandas.core.series.Series’>