cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Mr__E
by Contributor II
  • 3814 Views
  • 2 replies
  • 2 kudos

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( ...

  • 3814 Views
  • 2 replies
  • 2 kudos
Latest Reply
EliasHaydar
New Contributor II
  • 2 kudos

Nice catch ! Indeed, the error is misleading. In my case, it was a specific column that had a string with just whitespaces.

  • 2 kudos
1 More Replies
User16826992666
by Valued Contributor
  • 5094 Views
  • 1 replies
  • 0 kudos

Text length limitations in the display() function

Is there a way to change the limit to the length of strings that can be shown using the display() function in notebooks? If I'm noticing truncation, what can I do?

  • 5094 Views
  • 1 replies
  • 0 kudos
Latest Reply
User16826992666
Valued Contributor
  • 0 kudos

There is a 500 character limit to strings in columns which is non-configurable. To see the full contents of the column, you can either use the tooltip to expand the cell or download the full results.

  • 0 kudos
Labels