Commit 0ccbe819 authored by 赵威's avatar 赵威

fill null for service_id

parent a766cc94
......@@ -407,6 +407,9 @@ def tractate_feature_engineering(tractate_df):
df["is_related_service"] = df["is_related_service"].astype(int)
df["service_city"] = df["service_city"].fillna("")
df["service_id"] = df["service_city"].fillna("-1")
df["recommend_service_id"] = df["recommend_service_id"].fillna("-1")
df = df[TRACTATE_COLUMNS]
print("tractate: " + str(df.shape))
......
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