Commit 319a7d5b by 岳巧源

avoid nan

parent a0581f69
Showing with 1 additions and 1 deletions
......@@ -55,7 +55,7 @@ def resolve(file_name: str, supplier_id: int):
for i in range(len(df.index.values)):
goods_name = str(df.loc[i, "原厂型号"])
brand_name = str(df.loc[i, "品牌"])
if goods_name.strip() == "" or brand_name.strip() == "":
if goods_name.strip() == "" or brand_name.strip() == "" or goods_name.strip() == "nan" or brand_name.strip() == "nan":
continue
stock = str(df.loc[i, "库存"])
moq = str(df.loc[i, "起订量"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment