Complete Python NumPy Tutorial (Creating Arrays, Indexing, Math, Statistics, Reshaping)

Complete Python NumPy Tutorial (Creating Arrays, Indexing, Math, Statistics, Reshaping)

Keith Galli

4 года назад

775,061 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Steven
Steven - 08.09.2023 04:29

I popped an adderall and watched this video. Fuckin great time, it was. Thank you for this, I feel like I know numpy now

Ответить
Sai Koushik
Sai Koushik - 10.07.2023 20:29

Thanks man, appreciate your work

Ответить
一个stein
一个stein - 04.06.2023 20:06

Very good introduction course for numpy entry. Do you have any recommendation to further numpy learning? Thank you

Ответить
Shrey S
Shrey S - 03.06.2023 19:20

If anyone wants to attempt it, here's a challenge:

Write a function that makes a target with each ring having a progression of integers.
target(1) = [[0, 0, 0], [0, 1, 0], [0, 0, 0]]
target(2) = [[0, 0, 0, 0, 0], [0, 1, 1, 1, 0], [0, 1, 2, 1, 0], [0, 1, 1, 1, 0], [0, 0, 0, 0, 0,]]
target(3) = [[0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 0], [0, 1, 2, 2, 2, 1, 0], [0, 1, 2, 3, 2, 1, 0], [0, 1, 2, 2, 2, 1, 0], [0, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0]]

My solution is in the replies 😃

Ответить
WahranRai
WahranRai - 24.05.2023 08:19

Keep different sentences dont overwrite (replacing one with another etc...

Ответить
hello there
hello there - 07.05.2023 00:01

Thank you for the great course but most of all thank you for not being messy and going every where. Most tutorials dont follow any logic and jump from one thing to another without any logical line

Definitely the BEST tutorial i have watched !

Ответить
Vivian Wong
Vivian Wong - 04.05.2023 02:10

Thanks so much! Amazing teaching!

Ответить
Dimitris Gavriilidis
Dimitris Gavriilidis - 21.04.2023 20:35

Very useful tutorial! Really helped me. keep on!

Ответить
Mayur Shinde
Mayur Shinde - 26.02.2023 22:21

This was super helpful, Thanks Keith!

Ответить
Arkssa
Arkssa - 29.01.2023 10:56

Nice job doing an intro explaining why NumPy is so powerful before heading to the how-tos

Ответить
amirhossein jlz
amirhossein jlz - 26.01.2023 00:54

thank you

Ответить
edsonwinnerify
edsonwinnerify - 05.01.2023 15:23

Oh man, I started learning code watching your videos. Why don't you keep them coming?

Ответить
Rada Chicken
Rada Chicken - 13.11.2022 03:35

goated

Ответить
Tomer Harari
Tomer Harari - 26.10.2022 03:19

Anyone ever tell you you look like neville from Harry Potter??

Ответить
rafa lopez
rafa lopez - 22.10.2022 01:14

hey man great content! i've done 3 of your tutorials!!! I'm doing this one right now and I have a question:

[[[[ 1 2 3 4 5]]

[[ 6 7 8 9 10]]]


[[[11 12 13 14 15]]

[[16 17 18 19 20]]]]

from this 3d array can I select in just one command:

from the 2nd table, the last 3 objects of the 1st row and the first 3 objects of de 2nd row

thanks in advance!!!

Ответить
Kiroo!
Kiroo! - 19.10.2022 12:57

thanks, it actually let me through so i could download it.

Ответить
Muhammad Ahmad
Muhammad Ahmad - 19.10.2022 08:13

In array reading the data is faster and in list appending is faster.

Ответить
Jason Woodward
Jason Woodward - 17.10.2022 00:03

Thanks Keith

Ответить
Mathew Philip Peedikayil
Mathew Philip Peedikayil - 13.09.2022 06:47

Fantastic video !

Ответить
Vlogger Azlan
Vlogger Azlan - 19.08.2022 12:07

Watching from india

Ответить
Charles Otigbu
Charles Otigbu - 13.08.2022 08:17

Great tutorials, very simplified

Ответить
Muqaddas Zeb
Muqaddas Zeb - 09.08.2022 23:29

Thank u sooo much bro

Ответить
Vicente Soto
Vicente Soto - 04.08.2022 10:06

Great content

Ответить
Isaac Aso
Isaac Aso - 11.07.2022 09:44

Thanks Keith.

Ответить
Jono Charles Davey
Jono Charles Davey - 30.06.2022 04:45

This was my solution to the first challenge, am I a n00b?

arr = np.zeros([5, 5])
arr[0, :] = 1
arr[-1, :] = 1
arr[:, 0] = 1
arr[:, -1] = 1
arr[2, 2] = 9

print(arr)

Ответить
Yassine kader
Yassine kader - 29.06.2022 04:36

Thank you ✌️

Ответить
Javid Hesenov
Javid Hesenov - 26.06.2022 20:40

informative

Ответить
Antonia Tsvetanova
Antonia Tsvetanova - 21.06.2022 11:58

I am a PhD student in Statistics, but currently a ML intern at Microsoft and your videos are the only thing that help me transition from the statsy R-coding world to Python. Thank you!

Ответить
Jonathan Acuña
Jonathan Acuña - 25.05.2022 05:14

Super helpful to understand!

Ответить
mikeafter5
mikeafter5 - 05.05.2022 00:15

Thanks for including the background..

Ответить
Rafael Aguero
Rafael Aguero - 12.04.2022 03:45

Muchísimas gracias por el aporte genio :')

Ответить
Simon Maghiar
Simon Maghiar - 03.04.2022 13:46

I'm halfway through the video and so far so good. Nice tutorial !

Ответить
Владислав Неповинных
Владислав Неповинных - 02.04.2022 18:01

Nice tut, bro.

Ответить
TheGmr140
TheGmr140 - 11.03.2022 17:09

nice video, thank you

Ответить
Shefali Singh
Shefali Singh - 20.02.2022 16:31

Hi Keith!!!, As you were telling about Lists and NumPy differences that Lists do not use contiguous memory then there is no point of indexing in Lists, but still, it supports.
Little confused with this. Help Appreciated.

Ответить
Alexandra G
Alexandra G - 03.02.2022 02:25

Great examples! Thank you!!!

Ответить
Easy Learn With Ali
Easy Learn With Ali - 17.01.2022 15:09

thanks sir

Ответить
Oscar Diaz
Oscar Diaz - 13.01.2022 05:01

Hey Keith! Thank you for such a clear and concise intro to Numpy. My question is - does each array have to have the same amount of elements. For example, array a has 4 elements and array b has 4. One cannot have 4 or 6 on array b, would that be a correct assumption?

Ответить
Andrew Iglinski
Andrew Iglinski - 04.01.2022 23:26

My lord I'm coming from Node and just needed something to handle big sets of data and as easy as the syntax is for python it's sooo different from node. I'm not saying there aren't any but I don't know of any other language that cares how far you indent things and it's driving me fucking nuts.

Ответить
מירית ישראלוביץ
מירית ישראלוביץ - 02.01.2022 16:20

thank you so much!
i just start using python, and it really help me.

Ответить
yd
yd - 01.01.2022 05:22

Imo:

Indexing and reshaping goes a long way to understanding rest of the library. There’s only a few functions that don’t necessarily apply the ‘same’ logic. Leveraging numpy efficiently saves you from writing a bunch of for loops, but it helps to know how to write these for loops if not simply to demonstrate your understanding.

Ответить
Yamine Mohamed
Yamine Mohamed - 21.12.2021 00:21

hello keith, i am starting to learn the basics of programming using Python for Data science / ML, i have a long way to go and i am excited about the journey, thank you so much for this tutorial, i have just a question about loading the files, how does numpy locate the file to load??

Ответить
Ron Weasley
Ron Weasley - 10.12.2021 17:27

This was simple, short, easy to understand while covering all major topics! plus if you know pandas then it's more easy ;)

Ответить
Sakthivel Ravi
Sakthivel Ravi - 07.12.2021 10:48

Hi keith, you videos are really amazing and really helpfull. Thanks for this!!!!

Ответить
Jong Cheul Kim
Jong Cheul Kim - 04.12.2021 20:45

Thank you.

Ответить