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.
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.