Guest User

Untitled

a guest
Jan 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. my_split = udf(lambda x: x.split(' '), ArrayType(StringType()))
  2.  
  3. words = lines.select(
  4. explode(
  5. my_split(lines.value)
  6. )
  7. )
  8.  
  9. words = lines.select(
  10. explode(
  11. split(lines.value, ' ')
  12. )
  13. )
Add Comment
Please, Sign In to add comment