0
我有一个jsonfile是parsed.The JSON格式解析jsonfile是这样的:如何与火花
{"cv_id":"001","cv_parse": { "educations": [{"major": "English", "degree": "Bachelor" },{"major": "English", "degree": "Master "}],"basic_info": { "birthyear": "1984", "location": {"state": "New York"}}}}
我必须让每一个字在file.How我可以从一个阵列得到"major"
我是否必须使用方法df.select("cv_parse.basic_info.location.province")
来得到“省”字?
这是我想要的结果:
cv_id major degree birthyear state
001 English Bachelor 1984 New York
001 English Master 1984 New York