g2801_2900.s2887_fill_missing_data.solution.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
The newest version!
# #Easy #2023_12_23_Time_404_ms_(97.11%)_Space_59.7_MB_(74.95%)
import pandas as pd
def fillMissingValues(products: pd.DataFrame) -> pd.DataFrame:
products['quantity'].fillna(0, inplace=True)
return products
© 2015 - 2024 Weber Informatics LLC | Privacy Policy