1757.Recyclable and Low Fat Products
My code
1
2
3
4
5
import pandas as pd
def find_products(products: pd.DataFrame) -> pd.DataFrame:
answer = products[(products['low_fats'] == 'Y') & (products['recyclable'] == 'Y')]
return answer[['product_id']]