Python Numpy Tutorial Vsplit

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


import numpy as np and create a 12,4 array A

and now we get a list of 4 arrays. We cut the vertical array A intro 4, hence the v in split.

Let’s do this again. Here is A. Now let’s cut it into 6 arrays. you can see now we have 6 (2,4) arrays instead of one 12,4.

vsplit only works when the number of splits is a divisor of the amount of rows, this is because vsplit 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
Рекомендации по теме
Комментарии
Автор

How do I call an individual sub-array created using vsplit into another function or just how to refer to an individual sub-array?

ishgho