Skip to content
Advertisement

Python Numpy: int arrays can be converted to a scalar index

Please help me to get out of this error, maybe, it’s duplicate but I could not set it for my code.

JavaScript

ERROR

JavaScript

dataset

JavaScript

Advertisement

Answer

I think you might want to select your X columns slightly differently, e.g.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement