get values based on condition pandas code example
Example: pandas look for values in column with condition
df.loc[(df['column_name'] >= A) & (df['column_name'] <= B)]
df.loc[(df['column_name'] >= A) & (df['column_name'] <= B)]