numpy tutorial: iterate numpy array using nditer | numpy nditer

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 83

  • @codebasics
    @codebasics  8 วันที่ผ่านมา

    Folks, here's a link to our bootcamp for learning AI and Data Science in the most practical way: tinyurl.com/395u4mnm

  • @ramanak6961
    @ramanak6961 5 ปีที่แล้ว +17

    Your tutorials are Huge asset for the beginners and we are looking forward for more......and your style of mentoring is awesome. Great Job.

    • @codebasics
      @codebasics  5 ปีที่แล้ว +5

      Ramana I am glad 😊

  • @deepthapa5957
    @deepthapa5957 3 ปีที่แล้ว +2

    Cant thank you enough sir, really you are doing great job help others for free ,thats very rare nowadays, glad to see persons like you ,it make me to believe that humanity still exists.

  • @ahmedhelal920
    @ahmedhelal920 3 ปีที่แล้ว +3

    for the first example , we can use
    for row in a.flat:
    print(row)
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    learned from you on last tutorial 🥰

  • @notanengineer69
    @notanengineer69 5 หลายเดือนก่อน

    finally finished the python tutorial, thanks for the easy explanations. im looking forward to the data structures and algorithms tutorial now

  • @tanoychowdhury6375
    @tanoychowdhury6375 6 ปีที่แล้ว +4

    Make more videos on numpy to cover all functions....... your tutorials are really helpful for a beginner.❤

  • @AbhijeetKumar-qu4lm
    @AbhijeetKumar-qu4lm 6 ปีที่แล้ว +4

    Amazing way of teaching 😍😍
    Thanku so much for this all

  • @DiverseDestinationsDiaries
    @DiverseDestinationsDiaries 4 ปีที่แล้ว

    Really , it's amazing . the way you're explaining every concept from fundamentals for beginners.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad to hear that

  • @shrutijain1628
    @shrutijain1628 4 ปีที่แล้ว +2

    Best numpy tutorial 💯

  • @dineshkumar-dg9ml
    @dineshkumar-dg9ml 3 ปีที่แล้ว

    Completed your Numpy playlist. Wonderful. Easy understandable. Please advise if this is enough. Please post more videos eagerly waiting

  • @victorlourenco_
    @victorlourenco_ 6 ปีที่แล้ว +7

    you are amazing, love the effort you put into your videos

  • @SulemanTheTraveller
    @SulemanTheTraveller 3 ปีที่แล้ว

    it's really interesting, just done it with practice

  • @purplecrayon7281
    @purplecrayon7281 3 ปีที่แล้ว +1

    I understand how using numpy is superior than using lists, but the weakness of numpy seems to be that the shapes of arrays are so important. I would need to make sure that the data need to be made "rectangular/squarish" first by using a calculator (Yes, I'm aware you can make the calculations first using Python).

  • @ManishSharma-wy2py
    @ManishSharma-wy2py 5 ปีที่แล้ว

    You are great sir , your videos are amazing and awesome way of teaching .

  • @kenoalbatros
    @kenoalbatros 3 ปีที่แล้ว

    This tutorial was very well explained, thank you!

  • @hichemhadji348
    @hichemhadji348 4 ปีที่แล้ว +2

    Hi, please I have a question, you said that the iteration through 2 arrays simultaneously is possible if the arrays have the same shape or if one of the dimentions in one of the arrays is 1 .
    but it turns out that you have changed the dimentions of the array b of your example from (3,1) to a (4,1) but you had an error although we still have one as dimention
    greetings from France, your videos are awesome

    • @hichemhadji348
      @hichemhadji348 4 ปีที่แล้ว +2

      I think that the best answer would be ( if the shapes are equal) or if at least one of the 2 dimentions are equal in both arrays while the other dimention of one of the 2 arrays is equal to 1.
      please let me know

    • @mohammadal-antary9321
      @mohammadal-antary9321 4 ปีที่แล้ว

      @@hichemhadji348 I do agree with you

    • @bhupendrasai4640
      @bhupendrasai4640 ปีที่แล้ว

      Tq @@hichemhadji348

  • @surewin3006
    @surewin3006 3 ปีที่แล้ว

    Good tutorials and very helpful. I just completed this whole Python3 programming for beginners.
    What is your recommendation that i should take next?

  • @InformativeVideos423
    @InformativeVideos423 6 ปีที่แล้ว +1

    Excellent teaching. Superb!!!! Please also do videos on Tensorflow machine learning. I want to save a trained Tensorflow model and then later use it in some another program. How can I do it? help me please

  • @narayanamt9534
    @narayanamt9534 6 ปีที่แล้ว +1

    well covered. very helpful. Thank you very much

  • @jinkaleo
    @jinkaleo 6 ปีที่แล้ว

    straight to the basics....

  • @OmkarShelke-w2j
    @OmkarShelke-w2j ปีที่แล้ว

    this tutorial is amazing

  • @s.baskaravishnu22
    @s.baskaravishnu22 3 ปีที่แล้ว

    Many thanks for giving code

  • @Muhammad.Kashif31
    @Muhammad.Kashif31 ปีที่แล้ว

    Great effort Sir

  • @goodester6924
    @goodester6924 6 ปีที่แล้ว +1

    thanks for the tutorials!

  • @inspirational_talkings2099
    @inspirational_talkings2099 6 ปีที่แล้ว +2

    Sir can you upload Scipy tutorial videos ??? It would be very much helpful for me....plz sir...... expect a kind reply from you.....

  • @okenlaqahhar4879
    @okenlaqahhar4879 2 หลายเดือนก่อน

    I mean you just transpose the array and then square each value in the array via vectorized operations. The nditer seems to be extra.

  • @its_kumar
    @its_kumar 4 ปีที่แล้ว

    Great video 👍

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      Glad you enjoyed it

  • @mehandiyanaaditya
    @mehandiyanaaditya ปีที่แล้ว

    thank you sir

  • @mariolinovalencia7776
    @mariolinovalencia7776 6 ปีที่แล้ว

    Your videos are great

  • @nikhiljain8411
    @nikhiljain8411 5 ปีที่แล้ว +1

    Could you please create a video for scikit-learn as well

    • @codebasics
      @codebasics  5 ปีที่แล้ว +2

      Nikhil I have an entire series on machine leart using scikit-learn. Plz check that playlist on my channel

  • @shankarsalesforceseries5196
    @shankarsalesforceseries5196 5 ปีที่แล้ว

    Thank you. Good tutorial.

  • @cantanzim6215
    @cantanzim6215 5 ปีที่แล้ว

    grate videos..... thanks

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Can Tanzim, I am happy this was helpful to you

  • @johnjohn-nv9wb
    @johnjohn-nv9wb 3 ปีที่แล้ว

    Good day codebasics,i wanted to ask you,if this video is the complete course for professionals on python or just for beginners course only? if not can you send me the link to a more advanced course on python, please?

  • @ParthivDesaii
    @ParthivDesaii 5 ปีที่แล้ว

    It would be great if you show how to do iteration (for loop ) without using modules and built-it python functions, instead by applying logical and arithmetic ways.

  • @selvakd7103
    @selvakd7103 7 ปีที่แล้ว

    Hi I saw your tutorial videos its really useful for me . while I am working on numpy i have stuck with one point. i.e., jagged array concept. Is it possible to bring jagged array in numpy ?

  • @chiliverupavankalyan5051
    @chiliverupavankalyan5051 ปีที่แล้ว

    Thankyou

  • @ravisonawane6381
    @ravisonawane6381 7 ปีที่แล้ว +1

    Thank You sir...

  • @Imran20091990
    @Imran20091990 2 ปีที่แล้ว

    Excellent

  • @ravibatta8921
    @ravibatta8921 4 ปีที่แล้ว

    nice one

  • @vamsisaggurthi5528
    @vamsisaggurthi5528 6 ปีที่แล้ว +1

    Sir can you please provide information on django framework

  • @rahuljacob4694
    @rahuljacob4694 4 ปีที่แล้ว

    Sir , should i do Data Structures and algorithms or Data Science with Pandas first?

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      depends on your goal. if you want to become python software engineer than go for data structures etc. if you target data scientist field then do data science with pandas

    • @rahuljacob4694
      @rahuljacob4694 4 ปีที่แล้ว

      @@codebasics Ok Sir Thank you

  • @TejasChaudhari22
    @TejasChaudhari22 4 ปีที่แล้ว

    sir can you please provide links for all quries you teach in lectures. i mean each and every. please

  • @khanduom9341
    @khanduom9341 6 ปีที่แล้ว

    sir, the videos are really help. I have a query regarding reshaping of arrays. For example, if we have input shape of (144,1), we can easily reshape the array by assuming (12x 12 =144 matrix) and then reshape it as x = np.arange (144).reshape (1,12,12). Now my question is : how do we reshape the array if we have input shape of (1048572,1). Please help. ..Thanks

  • @tsietsimatjele5459
    @tsietsimatjele5459 6 ปีที่แล้ว

    Awesome......

  • @roninababan1239
    @roninababan1239 ปีที่แล้ว

    use zip() function
    for x,y in zip(a,b):
    print(x,y)

  • @rhard007
    @rhard007 6 ปีที่แล้ว

    Hi could you upload a video that explains how the numpy class as_strided works ? I have been stuck on this and haven't been able to find a good descriptions anywhere. Thanks.

  • @agenesis6761
    @agenesis6761 6 ปีที่แล้ว

    I have a specific question about Data frame (i went through your GitHub) library and could not find answer. How to reach you for some more clues on problem around iterating through dataframes and calculating values in 3 dimensional dataframe?

  • @mwahmed9519
    @mwahmed9519 4 ปีที่แล้ว

    Can you make a/some video on AWS ..

  • @instantlearning3003
    @instantlearning3003 3 ปีที่แล้ว

    sir I just want to ask that this tutorial is enough for data science.?

    • @parveznadvi007
      @parveznadvi007 3 ปีที่แล้ว +3

      Hi Deepak, I would say that the information provided in this series is sufficient to start your projects using numpy. While you are working on your project, based on the application, you will come up with algorithms in which you will use multiple numpy functions to work with. At that time you will know that the numpy docs and stack over flow will be your best friends to know more about the functionalities and how you can utilize them to complete your project.
      Hope this answers your question.

    • @hunting5.gammers417
      @hunting5.gammers417 ปีที่แล้ว

      @@parveznadvi007 she did not ask you..

    • @hunting5.gammers417
      @hunting5.gammers417 ปีที่แล้ว

      mind your own business....

    • @hunting5.gammers417
      @hunting5.gammers417 ปีที่แล้ว

      rascle

  • @al-amin5542
    @al-amin5542 6 ปีที่แล้ว

    thank you

  • @karthickkumar4941
    @karthickkumar4941 7 ปีที่แล้ว

    thank u so much

  • @vamsisaggurthi5528
    @vamsisaggurthi5528 6 ปีที่แล้ว

    Good

  • @sabariedits
    @sabariedits 7 หลายเดือนก่อน

    Is this enough because you don't teach random in numpy?

  • @ankitkumarsingh3717
    @ankitkumarsingh3717 6 ปีที่แล้ว

    Can you provide link to website where i can practice numpy?

    • @lakshsinghania
      @lakshsinghania ปีที่แล้ว

      made with ML
      lol im replying 4 yrs late

  • @maidishahoon
    @maidishahoon ปีที่แล้ว

    is this enough ???

  • @sauryadeeppal8873
    @sauryadeeppal8873 6 ปีที่แล้ว

    If i have an array a = np.arange(9).reshape(3, 3) and I define a function such that:
    def iter_by_row(array):
    for x in np.nditer(array, order='F'):
    print(x)
    But when I do this:
    print(iter_by_row(a))
    My output is:
    0
    3
    6
    1
    4
    7
    2
    5
    8
    None
    Why is the None being printed? Is this normal?

    • @gajulanagamani8312
      @gajulanagamani8312 3 ปีที่แล้ว +1

      array=np.arange(9).reshape(3,3)
      def iter_by_row(array):
      for x in np.nditer(array, order='F'):
      print(x)
      iter_by_row(array)
      try this one you cannot get none .function already print values but again you call print function for call the iter_by_row(array)

  • @birendrakumar-gl5gq
    @birendrakumar-gl5gq 4 ปีที่แล้ว

    Where to go from here?

  • @jeanrodrigues6249
    @jeanrodrigues6249 3 ปีที่แล้ว

    Ramana

  • @gangulreddy7918
    @gangulreddy7918 5 ปีที่แล้ว +1

    Helpful a lot, thanks much

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      😊😊😊🙏👍

  • @thirumala_reddy
    @thirumala_reddy 5 ปีที่แล้ว

    Thank u....