It is worth mentioning something here. The NumPy version you have installed shows the wrong error message @ 7:17. It should be "ValueError: all the input array dimensions except for the concatenation axis must match exactly". The word EXCEPT is missing. It shows the right message in Numpy version 1.15.2 .
import numpy as np from numpy import random x=np.array([[1,2,3],[4,5,5]]) y=np.array([[1,2,3],[4,5,5]]) print(np.concatenate((x,y),axis=1)) print(np.concatenate((x,y),axis=0)) print(np.sum(x,axis=0)) print(np.sum(x,axis=1)) question is in sum function 0 gives (5,7,8) and 1 gives (6,14) 0 gives column and 1 gives row calculation as per numpy rules 1 refer to column and 0 refer to row kindly clear this
Great explanation and a beautiful voice
Thank you :)
voice is equally good as explanation
Nice explanation on array concatenation and the correlation between the hstack and vstack with concatenate
Thank you :)
Awesome video! Thank you! Well done!
Nice Explanation, really helped me
Glad to hear that :)
good knowledge
You have explained amezingly... thank you so much ⭐✨💖
Rip Inglis 😇
Very helpful video
Glad to hear that :)
well explained Madam...... Thanks :)!!
Most welcome 😊
It is worth mentioning something here. The NumPy version you have installed shows the wrong error message @ 7:17. It should be "ValueError: all the input array dimensions except for the concatenation axis must match exactly". The word EXCEPT is missing. It shows the right message in Numpy version 1.15.2 .
insted of all the fucntions why cant we focus onyl on one function prefered concat
After splitting an array, is there a way to name the split arrays?
Good Going 🤗
Thank you :)
import numpy as np
from numpy import random
x=np.array([[1,2,3],[4,5,5]])
y=np.array([[1,2,3],[4,5,5]])
print(np.concatenate((x,y),axis=1))
print(np.concatenate((x,y),axis=0))
print(np.sum(x,axis=0))
print(np.sum(x,axis=1))
question is in sum function 0 gives (5,7,8) and 1 gives (6,14) 0 gives column and 1 gives row calculation as per numpy rules 1 refer to column and 0 refer to row kindly clear this
Axis 0 add row values first in row 0 we have 1 and in row 1 we have 4 so it will give 5.....it works like that :)
we already concatenated 2 d and 1d array @ 6:24 , then why its getting error at 9:36
We can concatenate a and b along the axis 0 [@6:24] but we cant concatenate a and b along the axis 1 [@9:36].
Love u
Thank you 😊
Why don’t we can concatenate using from numpy import *
How ?
Print(concatenate((a,b),axis=1))
Velvet and Silky voice
Thank you 😊
what is your age??