How to extract a subset from a data frame?
There are several ways

df[df['A']&gt;=3]


Maybe using query

df.query('A &gt;=3')


Or using the .loc

df.loc[df['A'] &gt;= 3]


This question is posted on several places.