Array Manipulation | reshape and resize | NumPy Tutorials | Python Programming

Поділитися
Вставка
  • Опубліковано 27 сер 2019
  • In this Python Programming video tutorial you will learn about array manipulation in detail. We will discuss about the reshape and resizing array.
    NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.
    reshape: Change the shape of given array without changing its size.
    resize : Change the shape as well as size of the array .
    #numpy #Python
    For more free tutorials on computer programming
    / amulsacademy
    / amulsacademy

КОМЕНТАРІ • 28

  • @torque5031
    @torque5031 2 роки тому +1

    Ur skill of explanation is really appreciable, go ahead 😊

  • @muhammadanas7698
    @muhammadanas7698 Рік тому

    Amazing video!

  • @samaritan5197
    @samaritan5197 2 роки тому

    ❤️ ur teaching... U gave example using resize for creating bigger size new array.. is it possible to decrease the size of the new array?

  • @syediqbalahmed3176
    @syediqbalahmed3176 4 роки тому +2

    very good...

  • @mohannayakvarthya6772
    @mohannayakvarthya6772 2 роки тому

    You are way of teaching lovely Can you make a complete notes of Numpy

  • @santoshwali3114
    @santoshwali3114 Рік тому

    very good knowledge

  • @thembekilethembekile5839
    @thembekilethembekile5839 4 роки тому +2

    This video is awesome, Shoutout

  • @user-ek9uf2by3r
    @user-ek9uf2by3r 6 місяців тому

    you can also explain what happens when we pass -1 as one of the parameters in reshape

  • @syedrehman5755
    @syedrehman5755 3 роки тому +2

    awesome tutorial
    Huge respect from pakistan

  • @mohamedfadl789
    @mohamedfadl789 2 роки тому +1

    Hi I'm working with a custom yolov3 .weights file and I'm trying to convert it to a .tf file format however when it reaches this line in a utils.py file:
    conv_weights = conv_weights.reshape(
    conv_shape).transpose([2, 3, 1, 0])
    this error happens: ValueError: cannot reshape array of size 264247 into shape (256,128,3,3)
    I'm asking this here because I want to understand the logic behind it, con_shape has the values (256,128,3,3)

  • @logeshR-glass
    @logeshR-glass Рік тому

    Thank you Mam

  • @arpitakale5281
    @arpitakale5281 Рік тому +1

    In easy way explain

  • @yathishwinner7647
    @yathishwinner7647 Рік тому

    in w3schools reshape syntax is : a.reshape(1,3) like this they added array before reshape. here you are putting array inside the reshape. what is the difference?

  • @lijitha9991
    @lijitha9991 4 роки тому +3

    Thanks for explanation.BUt there is small doubt here numpy.resize(5,2) filled the additional elements by repeating the array values where as a.resize(5,2) added zeros to the additional elements,is this how the function behaves

  • @mrkunalgoswami2010
    @mrkunalgoswami2010 3 роки тому

    thanks sis ........ make more

  • @sandyido3319
    @sandyido3319 3 роки тому

    i don't understand the rows and column wise how its working?

  • @jordiibrahim
    @jordiibrahim 2 роки тому

    on what occassion we must use reshape?

  • @sarojavinash
    @sarojavinash 4 роки тому +1

    Mam could you please make a video on linked list,I just need to know how it works.

  • @pankaj7687
    @pankaj7687 4 роки тому +1

    How reshape and resize works for 3D arrays?? You didnt mentioned anything about that.

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому +1

      like 2d array and 1d array, you can reshape and resize 3d arrays {in the same way}.

    • @thembekilethembekile5839
      @thembekilethembekile5839 4 роки тому +1

      How feel your pain brother, I also had the same problem, but this is what i figured out. Your size and your dimension are directly related. I if you multiply all your dimensions together you will get your size. So if you want to reshape a specific array you need to make sure that when you multiply all the dimension of the new array that you want you get the size of the old array. You can do this by dividing one of the dimension of your array with the new dimension that you want to add. I actually posted about this on stackoverflow so you can check it out

  • @ganeshnarala6757
    @ganeshnarala6757 4 роки тому +4

    what a beautiful voice , fallen for your voice.