Descargar el Código: patreon.com/pythonmaraton
Join Patreon: patreon.com/pythonmaraton
^Downloadable code & more! np.hsplit()
import numpy as np and create a 3,6 array A
now we can use np.hsplit to split the array A into sub arrays. So let’s try np.hsplit(A,3)
and now we get a list of 3 arrays. We cut the horizontal array A intro 3
Let’s do this again. Here is A. Now let’s cut it into two arrays. you can see now we have two 3x3 arrays instead of one 3,6.
split only works when the number of splits is a divisor of the amount of columns, this is because hsplit only allows you to split into equal portions.
So np.hsplit cuts on the columns. There you have it, that is how you can use np.hsplit
Please check out some of my other python videos and please consider subscribing for more python programming content.
This is a Python anaconda tutorial for help with coding, programming, or computer science. These are short python videos dedicated to troubleshooting python problems and learning Python syntax. For more videos see Python Help playlist by Rylan Fowers.
✅Subscribe: https://www.youtube.com/channel/UCub4...
📺Channel: https://www.youtube.com/channel/UCub4...
▶️Watch Latest Python Content: https://www.youtube.com/watch?v=myCPg...
▶️Watch Latest Other Content: https://www.youtube.com/watch?v=2YfQs...
🎵Theme Music: https://www.bensound.com/royalty-free...
#PythonMarathon #LearnPython #PythonTutorial
Nesta página do site você pode assistir ao vídeo on-line Python Numpy Tutorial Hsplit duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python Marathon 29 Julho 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 363 vezes e gostou 4 espectadores. Boa visualização!