module 'numpy' has no attribute 'hstacK'


I was doing some onehotencoding and when I tried to merge the arrays with np.hstack, I got this errorenter image description here. As of my knowledge hstack has not been depreceated nor they are planning to do so. Also everything is correct with the code(in my opinion), cause it ran just few hours back perfectly.
Is there any other way to do so ?

Asked By: Ayush Singhal



You have accidentally capitalised the K in np.hstacK. Use np.hstack instead.

Answered By: Richie Bendall
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.