texthero.preprocessing.remove_square_brackets¶ remove_square_brackets(s: pandas.core.series.Series)¶ Remove content within square brackets [] and the square brackets. See also remove_brackets() remove_angle_brackets() remove_round_brackets() remove_curly_brackets() Examples >>> s = pd.Series("Texthero [is not a superhero!]") >>> remove_square_brackets(s) 0 Texthero dtype: object