我想将上面sparkDataframe的filteredaddress列拆分为两个新列,分别是flag和address:
customer_id|pincode|filteredaddress| Flag| Address
1000045801 |121005 |[{'flag':'0', 'address':'House number 172, Parvatiya Colony Part-2 , N.I.T'}]
1000045801 |121005 |[{'flag':'1', 'address':'House number 172, Parvatiya Colony Part-2 , N.I.T'}]
1000045801 |121005 |[{'flag':'1', 'address':'House number 172, Parvatiya Colony Part-2 , N.I.T'}]
谁能告诉我怎么做吗?
1条答案
按热度按时间ghg1uchk1#
你可以从
filteredaddress
使用键Map列:访问Map值的其他方法有: