[LeetCode] Pandas / 2887. Fill missing data
2024. 7. 8. 15:00ㆍCoding/LeetCode-Pandas
문제 링크
https://leetcode.com/problems/fill-missing-data/description/
문제
코드
import pandas as pd
def fillMissingValues(products: pd.DataFrame) -> pd.DataFrame:
products["quantity"]=products["quantity"].fillna(0)
return products
'Coding > LeetCode-Pandas' 카테고리의 다른 글
[LeetCode] Pandas / 2889. Reshape data: Pivot (0) | 2024.07.08 |
---|---|
[LeetCode] Pandas / 2888. Reshape data concatenate (0) | 2024.07.08 |
[LeetCode] Pandas / 2886. Change data type (0) | 2024.07.08 |
[LeetCode] Pandas / 2885. Rename columns (0) | 2024.07.08 |
[LeetCode] Pandas / 2884. Modify Columns (0) | 2024.07.08 |