Numpy Maths Function (IN PYTHON)

 Numpy Maths Function (IN PYTHON)

#Nummpy Maths functions

#Mean

import numpy as np

n1=np.array([10,20,30,40,50,60])

np.mean(n1)

Out Put : 35.0

#Median

import numpy as np n1=np.array([11,44,5,96,67,85]) np.median(n1)

OUT PUT : 55.5

#standard Deviation

import numpy as np n1=np.array([1,5,3,100,4,48]) np.std(n1)

OUT PUT : 36.59424666377065



Comments

Popular posts from this blog

What is chopper

What is Resistor

Top 5 best Ethical hacking book for beginners