texthero.preprocessing.remove_diacritics¶
-
remove_diacritics
(input: pandas.core.series.Series) → pandas.core.series.Series¶ Remove all diacritics and accents.
Remove all diacritics and accents from any word and characters from the given Pandas Series. Return a cleaned version of the Pandas Series.
Examples
>>> import texthero as hero >>> import pandas as pd >>> s = pd.Series("Noël means Christmas in French") >>> hero.remove_diacritics(s) 0 Noel means Christmas in French dtype: object