Create a numpy object
import numpy a = numpy.array([1,2,3,4,5]) b = numpy.array([6,7,8,9,10])
Get sum, mean, variance, standard deviation with numpy numpy.sum(a) numpy.average(a) numpy.var(a) numpy.std(a)
Add element to numpy numpy.append(a,6)
→ Returns numpy.array ([1,2,3,4,5,6]) (returned as a return value)
Recommended Posts