remove_newline_chars¶
-
remove_newline_chars
(df_col)¶ Remove new line and/or carriage return from dataframe column.
Parameters: df_col – a single dataframe column <class ‘pandas.core.series.Series’> Returns: a single dataframe column <class ‘pandas.core.series.Series’> Example
>>> from shizen_gengo.preprocess_text import text_utils >>> df.col_name = text_utils.remove_newline_chars(df.col_name)