Python for Data Science (BEGINNERS!) Pt. 4: List Comprehension & Numpy Arrays (Jupyter)

Ғылым және технология

This is the fourth video in my Series Python 101: Python Programming for Absolute Beginners.
In today's video we will review for-loops to learn how to apply an operation to each element in a list. We will also get to know the very Python concept of list comprehension to do the same thing in a single line of code.
Lastly, we will use the power of numpy arrays to do the same thing.
------------------------------------------
TIMESTAMPS
00:00 - Intro
00:35 - Element-wise operations on lists
01:31 - For loops on lists
05:30 - List Comprehension
06:58 - Numpy Arrays
------------------------------------------
Be sure to have Python 3 and Jupyter notebook installed to be able to follow along.
------------------------------------------
Jupyter Notebook:
docs.jupyter.org/en/latest/in...
I suggest installing with pip (NOT anaconda):
pip3 install jupyter
Pip installation: pip.pypa.io/en/stable/install...
And in case you still need to install Python itself (make sure it's Python 3!):
realpython.com/installing-pyt...
------------------------------------------
Coming next: Multidimensional Numpy Arrays & Pandas Dataframes.

Пікірлер

    Келесі