1757. Recyclable and Low Fat Products

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 1757

import pandas as pd


def find_products(products: pd.DataFrame) -> pd.DataFrame:
    rs = products[(products["low_fats"] == "Y") & (products["recyclable"] == "Y")]
    rs = rs[["product_id"]]
    return rs