Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Scala Flatten multi valued column into rows

avatar
Expert Contributor

I am working with scala and i have a dataframe with one of its columns containing several values delimited by a comma. How can i turn these rows

["1", "x,y,z,", "A"]

["2", "x,y", "B"]

into

["1", "x,", "A"]

["1", "y,", "A"]

["1", "z", "A"]

["2", "x", "B"]

["2", "y", "B"]

1 ACCEPTED SOLUTION

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
1 REPLY 1

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login