Guest User

Untitled

a guest
Apr 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. df_small.show()
  2.  
  3. stringIndexer = StringIndexer(inputCol='branch', outputCol='branchIndex').setHandleInvalid("keep")
  4. encoded_small = stringIndexer.fit(df_small).transform(df_small)
  5. encoded_small.show()
Add Comment
Please, Sign In to add comment