Splitting and Concatenating Arrays - Beginner Python NumPy Exercises #6

Опубликовано: 09 Октябрь 2024
на канале: StrataScratch
754
16

This is the beginner Python NumPy exercises #6 and in this video, we walk through a few examples of splitting and concatenating arrays. This video follows the lectures (   • Split and Reshape NumPy & Concatenate...  ) so I suggest you watch the lectures first, then try to do exercises on your own before watching this video for the solutions. All python notebooks and links to the lecture video are above.

We start with concatenating or joining multiple NumPy arrays, then talk about more specific concatenation functions like vstack and hstack. Lastly, we talk about splitting arrays, both one dimensional and multi-dimensional NumPy arrays using vsplit and hsplit functions.

If you want to read the documentation of what we cover:
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
------------------------------------------
Watch the lecture before going through these practice exercises with me:    • Split and Reshape NumPy & Concatenate...  

Follow along interactively with the python notebooks in this video!

Python notebook WITHOUT solutions used in the video: https://bit.ly/3dASHZM

Python notebook WITH solutions used in the video: https://bit.ly/3dMXnf5

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!