Commit 98479180 authored by 张彦钊's avatar 张彦钊

add data

parent e384f10f
......@@ -48,9 +48,7 @@ def get_data():
print("shape")
print(df.shape)
device_tuple = tuple(set(df["device_id"].values.tolist()))
a = device_tuple[0:2]
print(a)
df = pd.merge(df,get_statistics(a),on="device_id",how='left').fillna(0)
df = pd.merge(df,get_statistics(device_tuple),on="device_id",how='left').fillna(0)
print("merge")
print(df.head())
print("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