how to get a slice of pandas dataframe by condition code example
Example 1: pandas slice based on column value
df.loc[df['column_name'] == some_value]
Example 2: slice dataframe pandas based on condition
# To slice pandas dataframe by condition
frioMurteira = data.loc[(data["POM"] == "Murteira") & (data["TMP"] > 7.2), ["DTM","TMP"]]