2887. Fill Missing Data

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

On This Page

LeetCode problem 2887

import pandas as pd


def fillMissingValues(products: pd.DataFrame) -> pd.DataFrame:
    products['quantity'] = products['quantity'].fillna(0)
    return products