0

This post shows how to filter a panda dataframe for length of strings in a column. I am looking for a solution that implements this using query().

df = pd.DataFrame({'A': ['aa','bbb','aaaaa']})
#df.query("len(A) >2")

should drop the first row.

safex
  • 2,398
  • 17
  • 40

0 Answers0