NumPy Operations - Ultimate Guide to Methods and Functions for Beginners!

Поделиться
HTML-код
  • Опубликовано: 9 май 2024
  • In this tutorial, we will dive much deeper into NumPy - focusing on important array methods, functions and of course - math! 🤓
    We will begin with a quick recap of the previous tutorial and we will then move on with lots of detailed examples and handy tricks!
    You can find links to my previous tutorial (and other NumPy-related videos of mine) in the related videos section below.
    📝 quick note: at 24:18 - the floating point numbers originated from (b/a) and not from np.floor()
    ⭐ CLONE MY CODE ⭐
    -------------------------------------------------------
    * Sorry code is unavailable, RIP Wayscript 😭😭😭*
    🎥 RELATED VIDEOS 🎥
    -------------------------------------------------------
    ⭐ Ultimate Guide to NumPy Arrays (PART 1 of this tutorial):
    • Ultimate Guide to NumP...
    ⭐ Python Learning Roadmap:
    • Python Learning Roadma...
    ⭐ Train Basic Neural Network with NumPy and Pandas:
    • Train Basic Neural Net...
    ⭐ Basic Guide to Pandas:
    • Basic Guide to Pandas!...
    ⏰ TIME STAMPS ⏰
    -------------------------------------------------------
    00:00 - intro
    --------------♻️ RECAP ♻️---------------
    00:30 - create 2D demo arrays
    01:56 - dtype attribute
    -------------------------------------------------------
    02:52 - fill array with values
    03:41 - assignment operators
    04:12 - NumPy is Python or C?
    06:11 - sum of array
    06:52 - sum of columns or rows only
    08:36 - product of array
    09:15 - average of array (mean)
    09:31 - minimum and maximum values
    10:02 - index of minimum and maximum values
    10:33 - peak to peak method (ptp)
    11:10 - size attribute
    11:50 - flatten vs ravel methods
    13:03 - repeat function
    14:10 - non-flat repeat function
    14:50 - unique function
    15:20 - diagonal function
    16:05 - convert array to list
    16:38 - save array to file
    17:12 - swap axes of array
    17:56 - transpose method
    18:27 - T attribute
    19:02 - NumPy documentation
    20:07 - simple operations on 2 matrices
    21:12 - modulo
    22:31 - floor division
    24:26 - matrix multiplication
    27:41 - thanks for watching! :)
    🔗 LINKS AND CREDITS 🔗
    -------------------------------------------------------
    ⭐ NumPy Documentation:
    numpy.org/doc/stable/referenc...
    ⭐ Emoji from:
    www.flaticon.com/
    ⭐ Text Effects from:
    mixkit.co/free-premiere-pro-t...
  • НаукаНаука

Комментарии • 92

  • @pythonixed4448
    @pythonixed4448 2 года назад +3

    Thanks for another great video. You descriptions are always so clear and precise.

  • @alisonhenley2551
    @alisonhenley2551 Год назад +2

    Thank you for taking the time to make these videos. It has been really helpful and empowering!

  • @dyg6945
    @dyg6945 Год назад

    Thank you so much! It's the best, the most informative and the most emotional tutorial with excellent English pronunciation what I have watched before! You are the Best! Thanks.

  • @fridmamedov270
    @fridmamedov270 Год назад +1

    I personally admire this great channel and this great tutor. I have learnt many things that I got stuck in. Thanks !!!

  • @kasturibasu8653
    @kasturibasu8653 2 года назад +11

    Can you please make a whole playlist on object detection algorithms? I love how you explain everything so easily!

  • @requirementsrequired8822
    @requirementsrequired8822 Год назад +2

    Great video! I watch them before class all the time!
    Have you done the video explaining matrix multiplication yet?

  • @rahulkmail
    @rahulkmail Год назад

    Very nice explanation of the built-in methods of NumPy. Really a great tutorial.

  • @mohamedpedrou2898
    @mohamedpedrou2898 2 года назад +8

    Amazing
    That's what I was looking for
    Thanks so much

  • @Sinke_100
    @Sinke_100 2 года назад +3

    I really like that u explained np.dot method in 3 different ways 🙂

  • @swetarani8375
    @swetarani8375 11 месяцев назад

    This is by far the best video i have found on numpy arrays basics n related operations... it's a very interesting and thorough video... ❤

  • @DiegoLopez-nj3pb
    @DiegoLopez-nj3pb Год назад

    Very nice tutorial, now I understand NumPy much better, thanks a lot!.

  • @TRUESTORIES-YT
    @TRUESTORIES-YT Год назад

    Found your vid on converting py to exe and loved your presentation! Subbed your chan to strengthen my skillz.👍

  • @natnaelsisay1424
    @natnaelsisay1424 2 месяца назад

    This numpy video serious is the only video i will send, if some one ask me how to use numpy. You have a great approach for teaching. Thank you

  • @EmaMazzi76
    @EmaMazzi76 2 года назад

    Thank you for the links! (and the video itself too) 😄

  • @acantun
    @acantun Год назад

    Perfect explanation and thanks for sharing the graphics.

  • @human7863
    @human7863 Год назад

    Great videos ! 👍 welcome from Egypt 🇪🇬

  • @nosao2748
    @nosao2748 7 месяцев назад

    Thank you so much !

  • @undeadpresident
    @undeadpresident Год назад +1

    I've been using this and found that the numpy operations are very handy.
    And on the subject of C, I've learned that it's not too difficult to pass pointers to the arrays into C functions using the ctypes module and operate on them directly in C, which is very fast indeed. I've found that while the mass operations in the numpy module are fast and convenient, that the iterations through them in Python are actually slower than through a list. But pass them to a C function and it's several times faster.

  • @helihobby
    @helihobby 6 месяцев назад

    Well explanation, easy to follow and learn, very informative.

  • @Tobs_
    @Tobs_ 2 года назад

    Thanks for sharing this video, I will have to watch it in small chunks as my mind is blown 😄

  • @Nervosa80
    @Nervosa80 Год назад

    Thank you, Maria!

  • @MyPython_
    @MyPython_ Год назад +1

    You are awesome. Informative videos. Thanks Mariya

  • @MatthieuKhairallah
    @MatthieuKhairallah 10 месяцев назад

    Thanks for your great content!

  • @eizou.inkomika
    @eizou.inkomika Год назад

    Thank you for this video. Easy to understand Numpy. Very usefull, i think.

  • @ZurioSi
    @ZurioSi 2 года назад

    Amazing video Maria!

  • @Jocjabes
    @Jocjabes 11 месяцев назад +2

    A pickle here. In numpy sort method the axis is -1 for row and 0 for columns from your last video. Consistent, no more.

  • @MartinEden-ps6ld
    @MartinEden-ps6ld 2 года назад +1

    pronounce very understandable, thank you :)

  • @alirezazarafshani1251
    @alirezazarafshani1251 2 года назад

    That was great, but for the next Tutorial, can you cover" pyomo" ?
    it's will be great if you cover some optimization problem😍

  • @furkanozata6775
    @furkanozata6775 3 месяца назад +1

    You are awesome. Thanks.

  • @Mark4Jesus
    @Mark4Jesus Год назад

    Love your videos!

  • @Yoritomo0
    @Yoritomo0 11 месяцев назад

    Very, very usefull. Thanks! 😊

  • @bibhakardas5761
    @bibhakardas5761 Год назад

    You should start a whole online course on Coursera or EdX. You are damn good. ❤

  • @kennethstephani692
    @kennethstephani692 Год назад

    Great video!

  • @mibrahim4245
    @mibrahim4245 2 года назад

    heeeey there :D

  • @iskandarabbas7896
    @iskandarabbas7896 2 года назад +1

    Thank You MARIYA, because last time i make the SMARTHome about behaviour using C4.5 Algorithm and FUZZY Entrophy base ANDROID 👍🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 about numpy or numeric pyhton

  • @alexcaruajulca
    @alexcaruajulca 2 года назад

    thanks for the subtitles

  • @Sinke_100
    @Sinke_100 2 года назад +1

    Try this:
    import PIL.Image as im
    import numpy as np
    color = 200,100,255 #try different values 0-255
    img = np.full((800,800,3), color, np.uint8)
    img = im.fromarray(img, 'RGB')
    img.save('sample.png', 'PNG')

  • @flioink
    @flioink 2 года назад

    So the "ravel" method creates a reference(array) to the original array?

  • @przemysawgrzymisawski6971
    @przemysawgrzymisawski6971 2 года назад

    Thanks for video. And I have question. You didn't mention about NaN. For me it's clear, but I didn't find and easy way to explain it to students (but INF is understandable for them). Do You have any idea?

  • @user-vd1km3dw2w
    @user-vd1km3dw2w 2 года назад +3

    Awesome!

  • @paxdriver
    @paxdriver 2 года назад

    I keep clicking like RUclips won't acknowledge it.. Wtf.
    Great video, thanks for the upload

  • @amoorinet..
    @amoorinet.. 3 месяца назад

    Science is the sword that does not miss, ,which you strike whoever you want, increases with a lot of giving and decreases with a lack of giving,additionally in your case increase your beauty

  • @jongcheulkim7284
    @jongcheulkim7284 Год назад +1

    Thank you.

    • @easydatascience2508
      @easydatascience2508 Год назад

      You can watch mine too. The channel provides detailed tutorial playlists for Python and R, with downloadable source files (see description of the video).

  • @jesusmysavior7843
    @jesusmysavior7843 2 года назад +2

    what i want from you is English Course with support! i will still remind you this ideas !

    • @PythonSimplified
      @PythonSimplified  2 года назад +3

      It will take me some time to get there but it's definitely an option! 😉
      I learned English when I was at school so I still have lots of notebooks of grammar rules and all kinds of goodies! 😊

    • @vasylpavuk391
      @vasylpavuk391 2 года назад

      @@PythonSimplified o yeah, English grammar is often a problem for me :) :) :)

    • @learnenglish699
      @learnenglish699 2 года назад

      @@PythonSimplified can u send us

  • @naturalworld5006
    @naturalworld5006 26 дней назад

    Please tell me when to use (bracket), [square], _ underscore & .dot ... when we code on Python or numpy ?

  • @frenamakenson9844
    @frenamakenson9844 2 месяца назад

    very usefull one

  • @aromasd
    @aromasd Год назад

    Eres genial

  • @horus4862
    @horus4862 Год назад

    That was fantastic
    Thank you 🙂

  • @jackroark6928
    @jackroark6928 Год назад

    🥑⭐ really good

  • @rfpcs1
    @rfpcs1 2 года назад

    I can't get numpy to run on my Visual Code. I tried pip install , search nothing works got any ideas ? it works on python idle just fine

  • @sumudunethmina669
    @sumudunethmina669 2 года назад

    You are amezing ❤️👍

  • @carlosvazquez2710
    @carlosvazquez2710 Год назад +1

    you''re smart

  • @cybersecurityexpert477
    @cybersecurityexpert477 2 года назад

    I know python basic and advance but not understanding which one is good books or RUclips tutorial

  • @barunchowdhury87
    @barunchowdhury87 6 дней назад

    For you we grow up

  • @Sinke_100
    @Sinke_100 2 года назад +1

    My default is int32 rather than 64, could be different version of python or numpy, not sure

    • @PythonSimplified
      @PythonSimplified  2 года назад +1

      I believe it depends on your computer hardware and operating system, Sinisa 😃
      My AlmaLinux laptop also defaults to int32 :)

    • @Sinke_100
      @Sinke_100 2 года назад

      @@PythonSimplified os is win 10 in this case now, thanks for info Mariya 👍🏻

  • @lquinn500
    @lquinn500 2 года назад

  • @barunchowdhury87
    @barunchowdhury87 6 дней назад

    ❤❤

  • @KamalUddin-ih1vs
    @KamalUddin-ih1vs 2 года назад +2

    Nic mam I want this toter

  • @dipeshrathore8842
    @dipeshrathore8842 2 года назад +2

    Numerical python! that's what I wanted 😃

  • @grownupgaming
    @grownupgaming 5 месяцев назад

    GOOD

  • @Test_subject2.0
    @Test_subject2.0 2 года назад

    Plz create some video for pyspark

  • @jijie133
    @jijie133 Год назад

    Beautiful, I mean both the teacher and the video.

  • @diwakar_tsn
    @diwakar_tsn 2 года назад +2

    Numpy wow ❤️😍

  • @dominicaguiling1440
    @dominicaguiling1440 2 года назад

    You are so beautiful and smart! Thank you for the video

  • @manu-singh
    @manu-singh Год назад

    the background music is as nice as you

  • @MrSorinCl
    @MrSorinCl 2 года назад

    youre so nice ❤️

  • @nishithirani6086
    @nishithirani6086 Год назад

    average and mean are two different things :)

  • @sammflynn405
    @sammflynn405 2 года назад

    is it just me or the sound is only on the right side

  • @cybersecurityexpert477
    @cybersecurityexpert477 2 года назад

    Please teach Coding with mobile

  • @Fredy1981
    @Fredy1981 Год назад

    5:30 pu puffffffffftttttt :)))

  • @JaveGeddes
    @JaveGeddes Год назад

    Apparently my math is so bad I was lost from the beginning.. public School failed me

  • @InobuZ
    @InobuZ Год назад

    Man.....having a wife that programs and codes.....and Beautiful.......If Eve coded we would still be in the Garden of Eden......

  • @adisonfryman144
    @adisonfryman144 Год назад

    I would really like to know why people use NumPy, I cant find any useful tutorials on how it is used in data science projects or other fields.

  • @vasylpavuk391
    @vasylpavuk391 2 года назад +1

    So cool video and simple to learn from it. Thank you Maria.
    P.S. Probably it's nice to demonstrate also numpy.fill_diagonal

    • @vasylpavuk391
      @vasylpavuk391 2 года назад +1

      like here:
      import numpy as np
      a = np.zeros(9).reshape(3,3)
      np.fill_diagonal(a,1)
      print(a)

  • @martincastello9866
    @martincastello9866 Год назад

    I think I'm fallen in love with you

  • @James-ss9hi
    @James-ss9hi Год назад

    beautiful girl give excellent python lectures

  • @francisnadeau8282
    @francisnadeau8282 29 дней назад

    😈 666

  • @horus4862
    @horus4862 Год назад

    Thanks!