Resolved! OneHotEncoder fails with 'Cannot have an empty string for name'
I have followed the basic guide on using OneHotEncoder, matching the syntax exactly with my own data tables. The tables have enumerated string values. I first run a StringIndexer (both with and without handleInvalid set):indexer = StringIndexer( ...
- 3451 Views
- 2 replies
- 2 kudos
Latest Reply
Nice catch ! Indeed, the error is misleading. In my case, it was a specific column that had a string with just whitespaces.
- 2 kudos