Commit 65e93762 authored by 张彦钊's avatar 张彦钊

change transform

parent a2e5ce88
......@@ -112,8 +112,9 @@ def get_statistics():
df = df.rename(columns={0:"device_id",1:"os",2:"total"})
for i in df.columns.difference(["device_id", "os","total"]):
df[i] = df[i]/df["total"]
df[i] = df[i].apply(lambda x: format(x,".4f"))
df = df.drop("total", axis=1)
print(df.dtypes)
df["y"] = 1
model = multiFFMFormatPandas()
df = model.fit_transform(df, y="y", n=100000, processes=18)
......
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