Commit 10a77d3f authored by 张彦钊's avatar 张彦钊

修改测试文件

parent a5bbed8c
...@@ -22,7 +22,7 @@ def app_list_func(x,l): ...@@ -22,7 +22,7 @@ def app_list_func(x,l):
def multi_hot(df,column,n): def multi_hot(df,column,n):
v = df.select(column).distinct().rdd.map(lambda x: x[0]).collect() v = df.select(column).distinct().rdd.map(lambda x: x[0]).collect()
app_list_value = [i.split(",") for i in v] app_list_value = [str(i).split(",") for i in v]
app_list_unique = [] app_list_unique = []
for i in app_list_value: for i in app_list_value:
app_list_unique.extend(i) app_list_unique.extend(i)
......
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