Commit 8b2ed8c9 authored by 张彦钊's avatar 张彦钊

增加查看缺失值的代码

parent 832532be
...@@ -47,7 +47,6 @@ def get_data(): ...@@ -47,7 +47,6 @@ def get_data():
df = df.drop_duplicates(["ucity_id", "clevel1_id", "ccity_name", "device_type", "manufacturer", df = df.drop_duplicates(["ucity_id", "clevel1_id", "ccity_name", "device_type", "manufacturer",
"channel", "top", "l1","l2", "time", "stat_date"]) "channel", "top", "l1","l2", "time", "stat_date"])
print(df.shape) print(df.shape)
print(df.count())
unique_values = [] unique_values = []
features = ["ucity_id", "clevel1_id", "ccity_name", "device_type", "manufacturer", features = ["ucity_id", "clevel1_id", "ccity_name", "device_type", "manufacturer",
...@@ -119,6 +118,7 @@ def get_predict(date,value_map): ...@@ -119,6 +118,7 @@ def get_predict(date,value_map):
print("predict shape") print("predict shape")
print(df.shape) print(df.shape)
print(df.count())
df["uid"] = df["device_id"] df["uid"] = df["device_id"]
df["city"] = df["ucity_id"] df["city"] = df["ucity_id"]
features = ["ucity_id", "clevel1_id", "ccity_name", "device_type", "manufacturer", features = ["ucity_id", "clevel1_id", "ccity_name", "device_type", "manufacturer",
......
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