Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df_small.show()
- stringIndexer = StringIndexer(inputCol='branch', outputCol='branchIndex').setHandleInvalid("keep")
- encoded_small = stringIndexer.fit(df_small).transform(df_small)
- encoded_small.show()
Add Comment
Please, Sign In to add comment