AttributeError: ‘Series’ object has no attribute ‘reshape’

Solution was linked on reshaped method on documentation page.

Insted of Y.reshape(-1,1) you need to use:

Y.values.reshape(-1,1)

Leave a Comment