Array Manipulation | Splitting and Joining Arrays | NumPy Tutorials | Python Programming
Вставка
- Опубліковано 26 вер 2019
- In this Python Programming video tutorial you will learn about array manipulation in detail. Here We will discuss how to split and join given array in detail.
NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.
Here we will discuss about concatenate hstack vstack and split function in detail.
Transpose Function:
• Array Manipulation | t...
#numpy #Python
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy
awesone explanation sister.
voice is equally good as explanation
Awesome video! Thank you! Well done!
Great explanation and a beautiful voice
Thank you :)
good knowledge
Nice explanation on array concatenation and the correlation between the hstack and vstack with concatenate
Thank you :)
You have explained amezingly... thank you so much ⭐✨💖
Rip Inglis 😇
Nice Explanation, really helped me
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
Good Going 🤗
Thank you :)
Very helpful video
Glad to hear that :)
After splitting an array, is there a way to name the split arrays?
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 😊
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 :)
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??