Commit 69d01503 authored by 王志伟's avatar 王志伟

取icon训练数据

parent b4ea7979
......@@ -540,6 +540,14 @@ object icon_train_data {
test_diary.show()
val Df2 = test_diary.withColumn("temp",split(test_diary("tag_list"), ",")).select(
test_diary("temp").getItem(0).as("col1"),
test_diary("temp").getItem(1).as("col2"),
test_diary("temp").getItem(2).as("col3")
).drop("temp")
Df2.show()
// val df_explode = test_diary.withColumn("e", explode(split(test_diary['tag_list'], ","))).drop("tag_list")
// print("写入开始")
......
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