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

修改测试文件

parent 595b77d3
......@@ -94,7 +94,8 @@ def feature_engineer():
number = len(app_list_unique)
app_list_map = dict(zip(app_list_unique, list(range(1, number + 1))))
print(df.select("app_list","stat_date").rdd.map(lambda x:(app_list_func(x[0],app_list_map),x[1])).first())
a = df.select("app_list","stat_date").rdd.map(lambda x:(app_list_func(x[0],app_list_map),x[1]))
spark.createDataFrame(a).show(6)
......
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