pandas filter row by word count

PHOTO EMBED

Tue Feb 15 2022 08:34:46 GMT+0000 (Coordinated Universal Time)

Saved by @aurora1625

df_wo_tab[df_wo_tab.cleaned_abstract.str.count(' ') < 4]
content_copyCOPY

instead of split and count, just count the space