Python NumPy Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 6 авг 2019
  • Learn the basics of the NumPy library in this tutorial for beginners. It provides background information on how NumPy works and how it compares to Python's Built-in lists. This video goes through how to write code with NumPy. It starts with the basics of creating arrays and then gets into more advanced stuff. The video covers creating arrays, indexing, math, statistics, reshaping, and more.
    💻 Code: github.com/KeithGalli/NumPy
    🎥 Tutorial from Keith Galli. Check out his RUclips channel: / @keithgalli
    ⭐️ Course Contents ⭐️
    ⌨️ (01:15) What is NumPy
    ⌨️ (01:35) NumPy vs Lists (speed, functionality)
    ⌨️ (09:17) Applications of NumPy
    ⌨️ (11:08) The Basics (creating arrays, shape, size, data type)
    ⌨️ (16:08) Accessing/Changing Specific Elements, Rows, Columns, etc (slicing)
    ⌨️ (23:14) Initializing Different Arrays (1s, 0s, full, random, etc...)
    ⌨️ (31:34) Problem #1 (How do you initialize this array?)
    ⌨️ (33:42) Be careful when copying variables!
    ⌨️ (35:45) Basic Mathematics (arithmetic, trigonometry, etc.)
    ⌨️ (38:20) Linear Algebra
    ⌨️ (42:19) Statistics
    ⌨️ (43:57) Reorganizing Arrays (reshape, vstack, hstack)
    ⌨️ (47:29) Load data in from a file
    ⌨️ (50:20) Advanced Indexing and Boolean Masking
    ⌨️ (55:59) Problem #2 (How do you index these values?)
    ⭐️ Links with more info ⭐️
    🔗 NumPy vs Lists: / channel
    🔗 Indexing: docs.scipy.org/doc/numpy-1.13...
    🔗 Array Creation Routines: docs.scipy.org/doc/numpy/refe...
    🔗 Math Routines Docs: docs.scipy.org/doc/numpy/refe...
    🔗 Linear Algebra Docs: docs.scipy.org/doc/numpy/refe...
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: www.freecodecamp.org/news

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

  • @cram2208
    @cram2208 4 года назад +37

    Seriously, side-by-side comparisons are the BEST !! As visual as it can get ! 🙏

  • @jozbornn
    @jozbornn 3 года назад +131

    This was a phenomenal overview of numpy. I feel confident that I can tackle more advanced topics now!

  • @cornelius600
    @cornelius600 4 года назад +232

    1.25 speed is perfect, thanks for the video

  • @bluegtturbo
    @bluegtturbo 4 года назад +35

    You Sir are an amazing teacher!! There are many software gurus in the world, but sadly few who can impart their knowledge as you do...

  • @gokul8747
    @gokul8747 3 года назад +448

    ⭐️ Course Contents ⭐️
    ⌨️ (01:15) What is NumPy
    ⌨️ (01:35) NumPy vs Lists (speed, functionality)
    ⌨️ (09:17) Applications of NumPy
    ⌨️ (11:08) The Basics (creating arrays, shape, size, data type)
    ⌨️ (16:08) Accessing/Changing Specific Elements, Rows, Columns, etc (slicing)
    ⌨️ (23:14) Initializing Different Arrays (1s, 0s, full, random, etc...)
    ⌨️ (31:34) Problem #1 (How do you initialize this array?)
    ⌨️ (33:42) Be careful when copying variables!
    ⌨️ (35:45) Basic Mathematics (arithmetic, trigonometry, etc.)
    ⌨️ (38:20) Linear Algebra
    ⌨️ (42:19) Statistics
    ⌨️ (43:57) Reorganizing Arrays (reshape, vstack, hstack)
    ⌨️ (47:29) Load data in from a file
    ⌨️ (50:20) Advanced Indexing and Boolean Masking
    ⌨️ (55:59) Problem #2 (How do you index these values?)

  • @TheNotoriousFonzy
    @TheNotoriousFonzy 2 года назад +51

    Keith, I've taken a heavy interest in data science lately and your courses absolutely rock !!!
    Many thanks to you for teaching me these fundamentals in such an informative, easy-to-understand manner.

  • @arthurgomberg164
    @arthurgomberg164 3 года назад +8

    Well done. Quick ,short & straight to the point!

  • @rajdeepchakraborty7961
    @rajdeepchakraborty7961 3 года назад +29

    One of the finest Numpy tutorials. Keep up the great work guys!

  • @smiley-wu1kn
    @smiley-wu1kn Год назад +7

    This is the first tutorial that I actually finished. Thank you, Keith!

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

    finally, done with the entire video, tbh, it took me 6 hours to get myself acquainted with the working of the NumPy library and the Jupyter notebook. Thank you for this awesome tutorial

  • @dohkang3725
    @dohkang3725 Год назад +3

    Thank you for great video, Keith Galli. I had some problem of understanding Numpy before. Thanks to your help, I have strong basic knowledge of Numpy :)

  • @tonyhathuc
    @tonyhathuc 3 года назад +16

    This is absolutely great content! Thank you so much for doing this!

  • @SK-zl3qg
    @SK-zl3qg 2 года назад +27

    Absolute clarity and upto speed. Very comprehensive coverage.

    • @63khushalsolanki9
      @63khushalsolanki9 2 года назад +9

      Thats the most english I have heard all day

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

      @@63khushalsolanki9 lol

  • @stoyangeorgiev77
    @stoyangeorgiev77 3 года назад +35

    for the part at 31:50
    a = np.zeros((5,5), dtype='int8')
    a[:,0:5:4], a[0:5:4,:], a[2,2] = 1, 1, 9

  • @Luxcium
    @Luxcium 4 года назад +12

    This guy is smart and he makes this stuff really interesting !!! I like it !!!

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

    Amazing! Thank you for the explanation dude. It is really helping me with a certification course that I’m taking now

  • @flow2917
    @flow2917 Год назад +4

    great vid, thanks for leaving the little mistakes in there, helps me remember that I dont have to be perfect at this and remember every little thing

  • @mrak8948
    @mrak8948 Год назад +29

    imp points:
    5:38 contiguous memory
    8:28 how are lists diff than Numpy
    9:42 applications of numpy
    26:17 full and full like

  • @steevenkenny9791
    @steevenkenny9791 Год назад +7

    Thank you very much sir... the course is crystal clear... thank you

  • @user-yt7vl3uh7g
    @user-yt7vl3uh7g 6 месяцев назад

    love the content ! i have just started to learn numpy for my course and this certainly helped !! cheers , would be looking forward to your content!

  • @judeleon8485
    @judeleon8485 3 года назад +1

    Thanks so much Keith, for the very educating tutorial. Quite explanatory

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

    Excellent pace and explanations -- thank you!

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

    This video improved my numpy information. So thanks everybody who contributed.

  • @rogerknight8092
    @rogerknight8092 4 года назад +6

    Much better than courses that I've paid good money for - Top Man Galli

  • @user-cy3je1xd1c
    @user-cy3je1xd1c 2 года назад +13

    Thank you! The only thing was a little bit complicated to me is working with axis. None the less, great tutorial!

    • @user-tf1bs6yy3b
      @user-tf1bs6yy3b Год назад

      رحؤنشضهكبءخؤذمء ء يددحمس

  • @fabrizio.anichini98
    @fabrizio.anichini98 3 года назад +5

    Thanks you Keith , great video (also subscribed to your channel). Also thanks to FCC , love you for your service!

  • @avivran1198
    @avivran1198 3 года назад

    Thanks for your effort and the good stuff. Effective introductory! Thanks

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

    Nice mate! What a wonderful review from all the possible uses of Numpy. Thanks a lot!

  • @Tradesbycami
    @Tradesbycami 10 месяцев назад +3

    Thanks for the free class! I'm just learning programming :) I felt very motivated after I could make the array on Problem #1

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

      learning as well, would u like a study budy?

  • @SMFahim-vo5zn
    @SMFahim-vo5zn 4 года назад +5

    Just finished it. It was really awesome! I like how you would look at your notes, so that we don't see you 😂. Thanks a lot for this tutorial Keith Galli. Not following any other tutorial on Numpy. Take love!

  • @nicholasziglio
    @nicholasziglio 4 года назад +6

    Really well put together, thanks! :)

  • @rickpala_
    @rickpala_ 4 года назад +3

    excellent tutorial. feeling comfortable with numpy now thanks to you :)

  • @san.s.shriyan
    @san.s.shriyan 2 года назад +1

    Even OpenCV a top choice among computer vision professionals uses numpy array to store the image data....
    Basically if you know how to manipulate numpy array you can do fine / pixel level operations...
    really appreciate your video.

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

    Awesome Tutorial. Thank you very much, Keith !

  • @hasandaaboul5322
    @hasandaaboul5322 9 месяцев назад +1

    Really amazing introduction to numpy, it helps a lot
    Thank you man!

  • @PBJYM
    @PBJYM 3 года назад

    Thank you bro! This was an amazing tutorial!

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

    Thank you Keith for this awesome tutorial!

  • @marco.nascimento
    @marco.nascimento 4 года назад

    This is a great tutorial, thanks!!

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

    Thank You for clearing my concepts on NumPy library.

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

    ur tutorial IS AWESOME, plz do more man i also watched ur pandas too and it was as expectedly AWESOME tnx for the help man i appreciate it

  • @robsonsilvadasilva
    @robsonsilvadasilva 4 года назад +37

    The second exercise from last part we can do this as well: a[range(0,4),range(1,5)]

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

      shouldn't the two range functions be in square brackets so as to make them a list

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

      @@bhavpreetsingh1842 Hello Bhavpreet. I think that is a good practice to use square brackets to read the function, but it`s not necessary. You can test and see that works :)

    • @akshat2778
      @akshat2778 3 года назад

      Even i did the same way ✌️🤟

    • @lbars
      @lbars 3 года назад +1

      Mine: np.hstack(a[0:4, 1:5])[0:19:5]

    • @brettnelson7518
      @brettnelson7518 3 года назад

      a = Np.arrane([0, 4] [1,5]) is more efficient

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

    Best crash course on Numpy ! Thank you for your interesting videos

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

    Super helpful tutorial.
    When you went back and used -1 indexes instead of exclusive 4's at 33:36 my world stopped imploding. Thank you.

  • @PrakashRaj-md4wo
    @PrakashRaj-md4wo 5 месяцев назад

    56:00
    b=[ ]
    for i in range(1,31):
    b.append(i)
    c=np.array(b)
    c=c.reshape(6,5)
    print(c)

  • @mahbleh404
    @mahbleh404 4 месяца назад

    one of the best numpy tutorial ever

  • @tempor8336
    @tempor8336 4 года назад +1

    Thank you dude ! That was great !

  • @nakjoonim
    @nakjoonim 3 года назад

    Thank you so much for this amazing video!

  • @maryanivanov961
    @maryanivanov961 Месяц назад

    Thanks for this amazing course!!

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

    Thanks bro you I have learnt a TON of stuff from your tutorials

  • @prazzaldebnath5930
    @prazzaldebnath5930 3 года назад

    Great tutorial completed full. Love from heart

  • @redviper20
    @redviper20 3 года назад

    Here's how you watch these videos:
    Hover over your right arrow key and hit it when he's initializing or doing some boring stuff,
    and when something interesting happens, something you might wanna know, you stop, pay attention, maybe type something similar in your own jupyter notebook; continue.
    Don't watch it at 2x speed. It doesn't work...
    Reading docs is hard! So this video is really cool.

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

    Good job, way to go. Salute from Brazil.

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

    Fantastic Tutorial !!!!
    Loved It !!!

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

    At 31:50 - more compact form:
    output = np.ones((5, 5), dtype='int8')
    output[1:4:1, 1:4:1], output[2, 2] = 0, 9
    print(output)

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

    Very good job, it was very helpful to me, thank you!

  • @Mushsayer
    @Mushsayer 3 года назад

    Thank you very much for sharing the video. It was very helpful.

  • @PawanKumar-tu6ti
    @PawanKumar-tu6ti 3 года назад

    Thanks a lot for this video!! much appreciated really !

  • @artistpw
    @artistpw 9 месяцев назад

    Love. this. Truly great content and it was even nice to see the little faux pas because everyone has those!

  • @anujdubey7324
    @anujdubey7324 4 месяца назад

    Just completed this tutorial. Thanks a lot for the content. Peace Out!!

  • @sankarmunirathinam115
    @sankarmunirathinam115 4 месяца назад

    Awesome Keith, thank you for this great video

  • @CzechPatriot1918
    @CzechPatriot1918 8 месяцев назад +7

    Watching this at 2x speed so I can learn Numpy in 29 minutes instead of 58 minutes.

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

      i have installed video controller extension, i am watching at 2.5x

    • @user-ir8vd6tg9z
      @user-ir8vd6tg9z 2 месяца назад

      @@krrishkataria560Just don't watch the video and read the specific documentation. It will be even faster if you have skill.

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

    completed. thanks man! u r amazing

  • @nasser_omar
    @nasser_omar 3 года назад +1

    Thanks a lot, man. You are amazing.

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

    Thank You! 😊

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

    Thank you for the video, its help me a lot to understand the concept and the function

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

      welcome to check my playlists also. I made most of the videos for Python and R. easy to follow.

  • @muhammadmuzammil2140
    @muhammadmuzammil2140 4 года назад +1

    Great video and awesome examples

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

    Thank you so much for this video. It helped a lot.

  • @sahilkhandelwal8534
    @sahilkhandelwal8534 3 года назад

    Great video . God bless you and you keep making such great videos

  • @thinhtruong6583
    @thinhtruong6583 3 года назад

    thanks for making this video ! It's helpful !

  • @DJ-ct6so
    @DJ-ct6so 5 месяцев назад

    Excellent sir, very well explained !! Many thanks for uploading. 5 stars. ⭐⭐⭐⭐⭐

  • @apexefficiency
    @apexefficiency 4 года назад

    Great Tutorial!!

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

    Thank you. Very helpful.

  • @saifurrahman3961
    @saifurrahman3961 3 года назад

    Thank You Very Much for teaching us this nicely

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

    Thanks for the tutorial! 👍

  • @trisolation
    @trisolation 4 года назад

    Great video.
    Thanks!

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

    Great video. LOVED IT!

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

    Excellent video. Thank you so much.

  • @andygordon6880
    @andygordon6880 8 месяцев назад

    Fantastic tutorial, thank you

  • @sanjr3079
    @sanjr3079 3 года назад

    Thnx for these great lessons
    .😇

  • @aliceinbath2850
    @aliceinbath2850 Месяц назад

    Thanks for this video!!

  • @Yo5463
    @Yo5463 4 года назад

    At the end, I indexed [2, 8, 14, 20] as np.delete(a[a%6 == 2], -1) to make use of the cool stair pattern

  • @minhduc8a21
    @minhduc8a21 8 месяцев назад

    Thank you for the useful content. The very quick start with numpy.

  • @cellphoneacademy5454
    @cellphoneacademy5454 3 года назад

    Thanks for the awesome video!

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

    Thanks man. Great content. Cheers

  • @shamsmehdi3725
    @shamsmehdi3725 3 года назад

    very very helpful. thank you!

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

    Great video! Just got confused on min 43:55, output 143 should be a sum, but rather we got an array.

  • @K_SE_Arpan
    @K_SE_Arpan 3 года назад

    Awesome work dude.
    love from India

  • @shrikantrane9601
    @shrikantrane9601 4 года назад +51

    Great Tutorial .. can u upload the pandas, scikit learn also.. So we will get the complete basic ml package

  • @frankvalenti8350
    @frankvalenti8350 3 года назад

    Very well done!!!

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

    thank you for this helpful tutorial!

  • @rohankandra1928
    @rohankandra1928 2 года назад +4

    We can also solve the exercise at 33' using
    output = np.ones((5,5))
    print(output)
    output[1:4,1:4]=0
    print(output)
    output[2,2]=9
    print(output)

    • @foofoo17
      @foofoo17 Месяц назад

      I solved it in the same way as you :)

  • @enahpincer6233
    @enahpincer6233 3 года назад +1

    Thank you so much for this video :) :)

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

    Thanks you for this amazing video , great explaination

  • @bhosalepranil16
    @bhosalepranil16 4 года назад

    very good video for learning numpy every topic is covered very well.....

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

    Thank you for the lesson

  • @ayushgupta1881
    @ayushgupta1881 4 месяца назад

    Thanks a lot for this amazing video

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

    thank you so much. It was very useful

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

    Great video👏 thank you

  • @masterchief7746
    @masterchief7746 8 месяцев назад

    wonderful thanks for the course!

    • @gowrikatte2911
      @gowrikatte2911 8 месяцев назад

      where to save the data.txt file?

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

    Awesome lesson, thx you dude