Commit 34fabc6e authored by 郭羽's avatar 郭羽

美购精排模型

parent a8ec78cc
......@@ -53,12 +53,15 @@ def csvTypeConvert(columns,df,data_vocab):
df[k] = df[k].fillna("-1")
df[k] = df[k].astype("string")
elif k != "label":
print(k)
print(df[k].head(10))
df[k] = df[k].map(lambda x:x if is_float(x) else 0)
df[k] = df[k].fillna(0)
df[k] = df[k].astype("float")
print(df["label"].head(10))
df["label"] = df["label"].astype("int")
# print(df.dtypes)
return df
......
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 to comment