Split and Reshape NumPy & Concatenate NumPy Arrays - Complete Python NumPy Tutorial for Beginners #6

Опубликовано: 10 Октябрь 2024
на канале: StrataScratch
1,223
28

This is the complete Python NumPy tutorial for beginners video #6 and In this video, we talk about split and reshape NumPy and concatenate NumPy arrays (more advanced topics on manipulating NumPy arrays). We’ll first walk through reshaping arrays using the reshape() function and cover using np.newaxis. We then will talk about concatenating arrays (i.e., joining multiple arrays) using multiple different functions like concatenate(), vstack(), hstack(). Lastly, we’ll cover the opposite of concatenating arrays, which is splitting multiple arrays. We’ll walk through splitting arrays vertically using vsplit() and horizontally using hsplit()

If you want to read the documentation of what we cover:
np.reshape: https://numpy.org/doc/1.18/reference/...
np.newaxis: https://numpy.org/doc/1.18/reference/...
np.concatenate: https://numpy.org/doc/1.18/reference/...
np.vstack: https://numpy.org/doc/1.18/reference/...
np.hstack: https://numpy.org/doc/1.18/reference/...
np.vsplit: https://numpy.org/doc/1.18/reference/...
np.hsplit: https://numpy.org/doc/1.18/reference/...

Let me know if you have any questions and please offer feedback on how I can improve to help you better.

If you enjoyed this video, please throw in a like and subscribe to my channel. I’ll be posting a lot more videos on data science concepts that cover all things python and SQL.

------------------------------------------
Subscribe to my channel: https://bit.ly/2WOgqil
------------------------------------------
Follow along interactively and execute code with me as I walk through the concepts!

Python notebook used in the video: https://bit.ly/2YWbiLU

Here’s help on how to run a python notebook using Google Colabs: https://bit.ly/2YXKR8o

Much of the content was adapted from the book and GitHub of Jake VanderPlas’s Python Data Science Handbook: https://jakevdp.github.io/PythonDataS...
------------------------------------------

Trying to improve your python skills or prepare for your next technical interview? Practice with over 500+ interactive python questions on a full-fledged coding workspace that requires no installation on Strata Scratch - https://www.stratascratch.com - and use the promo code ‘ss15’ for a 15% discount on the platform!