Python Numpy Tutorial Hsplit

preview_player
Показать описание


import numpy as np and create a 3,6 array A

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.

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.





#PythonMarathon #LearnPython #PythonTutorial
Рекомендации по теме
Комментарии
Автор

The moment you split that array I knew things were going down! Such an epic video!

LoganBeck