python select rows with condition on columns values code example
Example 1: pandas slice based on column value
df.loc[df['column_name'] == some_value]
Example 2: new dataframe based on certain row conditions
filterinfDataframe = dfObj[(dfObj['Sale'] > 30) & (dfObj['Sale'] < 33) ]