texthero.preprocessing.remove_brackets¶
-
remove_brackets
(s: pandas.core.series.Series)¶ Remove content within brackets and the brackets itself.
Remove content from any kind of brackets, (), [], {}, <>.
See also
Examples
>>> s = pd.Series("Texthero (round) [square] [curly] [angle]") >>> remove_brackets(s) 0 Texthero dtype: object