Commit 1aa82534 authored by 张彦钊's avatar 张彦钊

multi hot 转化成数字

parent 42f6ddfb
......@@ -27,7 +27,7 @@ def multi():
df["l2"] = "lost"
df["l3"] = "lost"
for i in list(df["level"].unique()):
l = i.split(";")
l = [int(j) for j in i.split(";")]
l = sorted(l)
if len(l) >= 3:
df.loc[df["level"] == i, ["l1"]] = l[0]
......
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