texthero.preprocessing.remove_urls¶
-
remove_urls
(s: pandas.core.series.Series) → pandas.core.series.Series¶ Remove all urls from a given Pandas Series.
remove_urls remove any urls and replace it with a single empty space.
Examples
>>> import texthero as hero >>> import pandas as pd >>> s = pd.Series("Go to: https://example.com") >>> hero.remove_urls(s) 0 Go to: dtype: object