1757. 可回收且低脂的产品
为保证权益,题目请参考 1757. 可回收且低脂的产品(From LeetCode).
解决方案1
Python
python
import pandas as pd
def find_products(products: pd.DataFrame) -> pd.DataFrame:
return products[(products["low_fats"] == "Y") & (products["recyclable"] == "Y")][
["product_id"]
]
1
2
3
4
5
6
7
2
3
4
5
6
7