Skip to content

Commit 44984e5

Browse files
authored
Create 11-fill-missing-data.py
1 parent 02ccf94 commit 44984e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

11-fill-missing-data.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# use fillna()
2+
3+
import pandas as pd
4+
5+
def fillMissingValues(products: pd.DataFrame) -> pd.DataFrame:
6+
products['quantity'] = products['quantity'].fillna(0)
7+
return products
8+
9+
# no compmanies listed

0 commit comments

Comments
 (0)