Arrays in Python / Numpy




[ad_1]

Arrays are collections of strings, numbers, or other objects. This tutorial demonstrates how to create and manipulate arrays in Python with Numpy.

Source


[ad_2]

Comment List

  • APMonitor.com
    November 14, 2020

    Bad video

  • APMonitor.com
    November 14, 2020

    Thankyou man 👍

  • APMonitor.com
    November 14, 2020

    I understood you can init an empty array with a determined dimension also you can fill the array with ones, zeros, etc but how can I init that array with -1 value?. Thanks in advanced

  • APMonitor.com
    November 14, 2020

    Ive been searching for this for 2 hours!
    Thanks alooot ❤❤

  • APMonitor.com
    November 14, 2020

    Won't x[1] be 3 in 0:53?

  • APMonitor.com
    November 14, 2020

    Need to zoom in

  • APMonitor.com
    November 14, 2020

    i use pycharm

  • APMonitor.com
    November 14, 2020

    Very helpful.

  • APMonitor.com
    November 14, 2020

    did you know what this expression do (pt.numpy())

  • APMonitor.com
    November 14, 2020

    thats a list

  • APMonitor.com
    November 14, 2020

    You kinda sound like H. Jon Benjamin aka Bob from Bob's Burgers

  • APMonitor.com
    November 14, 2020

    oh god finally english

  • APMonitor.com
    November 14, 2020

    Buy yourself a new mic

  • APMonitor.com
    November 14, 2020

    Hi I am unable to find how you can get the user to print the data from the array they want. For example "Red" "Blue" "Yellow"
    red is 0, blue is 1, yellow is 2.

    User enters that they want to print "1" print: Blue. How can you do this?

  • APMonitor.com
    November 14, 2020

    Excellent

  • APMonitor.com
    November 14, 2020

    how do I get numpy.

  • APMonitor.com
    November 14, 2020

    This is a great video, too bad that it calls the lists, arrays. Coming from a Java background I was confused for a good couple of hours.

  • APMonitor.com
    November 14, 2020

    thanks for the video it was very helpful
    i noticed that you're running python on windows 10 and i am wondering if you have any information about installing openfst toolkit on windows with python 3.6
    i tried to install it using anaconda with " pip install openfst" but i got this error:
    cl : Command line error D8021 : invalid numeric argument '/Wno-unneeded-internal-declaration'
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
    could you help me please if you have any information about this matter

  • APMonitor.com
    November 14, 2020

    B

  • APMonitor.com
    November 14, 2020

    2 dimensional array?

  • APMonitor.com
    November 14, 2020

    Thanks for the video! I'm trying to calculate the perimeter of a parabola. I can easily plot it once I define x and y:
    x=np.linspace(0,1,100)
    y=x*x

    but how do I separate out individual x and y values so that I can find the distances between them?

    Cheers 🙂

  • APMonitor.com
    November 14, 2020

    Having never programmed in Python before, this is really a good introduction to the IDE, and basic variable/array manipulation. I like languages which are not strongly typed having grown up with BBC BASIC. Found reference to Numpy in some example code for SenseHAT code on Raspberry PI and hadn't a clue what it was. I learned more in this one tutorial than all the weeks looking at code. I'll definitely be looking out for more Tutorials by APMonitor.

  • APMonitor.com
    November 14, 2020

    Thanks a lot ,a pretty good tutorial to follow

  • APMonitor.com
    November 14, 2020

    I can tell you that ur video is way more simple and easy to understand.

  • APMonitor.com
    November 14, 2020

    Hi, I typed the same program but it gives an error "no module name numpy"

  • APMonitor.com
    November 14, 2020

    But… Those are lists… Not arrays.
    A list, unlike an array, doesn't have a defined data type for its objects, nor does it have a fixed size…

  • APMonitor.com
    November 14, 2020

    a good one thank you!

  • APMonitor.com
    November 14, 2020

    excuse me ,if I have four matrices and i want to pick out one element from each matrics.
    and make a new matrix by this four elements.
    how can i do it ?
    (my code)
    import numpy as np
    n=6
    h=1/(n-1)
    j=n-2
    k=n-2
    U1=np.zeros((j,k))
    for k in range(n-2):
    k=k+2
    U1[0]=np.exp((0*h)**2+(k*h)**2)
    print(U1)
    s=np.split(U1,4,axis=1)
    print(s)

    i need to show a new matrix:[1.17351087 1.43332941 1.89648088 2.71828183
    0 0 0 0
    0 0 0 0
    0 0 0 0 ]
    and i have another question .
    i want to make a diagonal matrix.i use np.diag(A) but A is a function (e.g.:2+2*np.cos((k*np.pi)/(n-1)) ).
    i can use the for loop to compute A.but i don't know how to change the answer of A to be a array and put into np.diag()
    how can i do to solve?
    (my code)
    import numpy as np
    n=6
    for k in range(n-2):
    k=k+1
    A=-2+2*np.cos((k*np.pi)/(n-1))
    print(A)

    #D=np.diag(np.array(A))
    #print(D)

  • APMonitor.com
    November 14, 2020

    nice totorial. is there a possibility you could filter this high backgroud frequency out? i could enjoy it even more then

  • APMonitor.com
    November 14, 2020

    You are amazing thank you so so much !

  • APMonitor.com
    November 14, 2020

    great information. thanks.

  • APMonitor.com
    November 14, 2020

    I think what you call array is called list

Write a comment