How to Create Arrays and Functions in Python - Complete Python NumPy Tutorial for Beginners #2

Опубликовано: 23 Октябрь 2024
на канале: StrataScratch
1,616
17

This is the complete Python NumPy tutorial for beginners video #2 and in this video, we walk through how to create Arrays and Functions in Python using NumPy. This is especially important for any data analytics or data science work. We dive right into create NumPy arrays using various functions like zeros(). ones(), full(), arange(), linspace(), random.random(), random.normal(), random.randint(), eye(), and empty(). I end with a short lecture on NumPy data types that could be used to create the arrays.

Python numpy documentation for the functions covered:
np.zeros(): https://numpy.org/doc/stable/referenc...
np.ones(): https://numpy.org/doc/stable/referenc...
np.full(): https://numpy.org/doc/stable/referenc...
np.arange(): https://numpy.org/doc/stable/referenc...
np.linspace(): https://numpy.org/doc/stable/referenc...
np,random.random(): https://numpy.org/doc/stable/referenc...
np.random.normal(): https://numpy.org/doc/stable/referenc...
np.randint(): https://numpy.org/doc/stable/referenc...
np.eye(): https://numpy.org/doc/stable/referenc...
np.empty(): https://numpy.org/doc/stable/referenc...

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 (you'll need to be signed in to Google to download): https://bit.ly/3dIEXfK

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!