## 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]

[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]

Bad video

Thankyou man 👍

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

Ive been searching for this for 2 hours!

Thanks alooot ❤❤

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

Need to zoom in

i use pycharm

Very helpful.

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

thats a list

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

oh god finally english

Buy yourself a new mic

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?

Excellent

how do I get numpy.

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.

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

B

2 dimensional array?

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 🙂

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.

Thanks a lot ,a pretty good tutorial to follow

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

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

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…

a good one thank you!

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)

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

You are amazing thank you so so much !

great information. thanks.

I think what you call array is called list