module 'numpy' has no attribute 'hstacK'
Question:
I was doing some onehotencoding and when I tried to merge the arrays with np.hstack
, I got this error
. 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 ?
Answers:
You have accidentally capitalised the K
in np.hstacK
. Use np.hstack
instead.
I was doing some onehotencoding and when I tried to merge the arrays with np.hstack
, I got this error. 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 ?
You have accidentally capitalised the K
in np.hstacK
. Use np.hstack
instead.