texthero.preprocessing.drop_no_content¶
-
drop_no_content
(s: pandas.core.series.Series)¶ Drop all rows without content.
Drop all rows from the given Pandas Series where
has_content()
is False.Examples
>>> s = pd.Series(["content", np.nan, "\t\n", " "]) >>> drop_no_content(s) 0 content dtype: object