📜  根据条件切片数据框熊猫 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:55.582000             🧑  作者: Mango

代码示例2
# To slice pandas dataframe by condition

frioMurteira = data.loc[(data["POM"] == "Murteira") & (data["TMP"] > 7.2), ["DTM","TMP"]]