filmov
tv
Python Tutorial - Numpy Vstack
Показать описание
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.
VSTACK
we import numpy as np
And now we will create some arrays to demonstrate with.
We will press the up arrow on the keyboard to bring that up again, and we can edit it to make a matrix y
So here we have matrix x
and here is matrix y
Notice the x array is on top and the y matrix is on the bottom since we put x first then y. v stack is vertical stack. For it to work, both matrices must have the same amount of Columns
SO remember VC vstack works when column dimensions are the same.
There you have it, that is how you use Vstack in python
#PythonMarathon #LearnPython #PythonTutorial