How to do numerical operations in Python using Numpy?
0

How to do numerical operations in Python using Numpy?

This recipe helps you do numerical operations in Python using Numpy
In [1]:
## How to do numerical operations in Python using Numpy
def Kickstarter_Example_51():
    print()
    print(format('How to do numerical operations in Python using Numpy','*^82'))
    import warnings
    warnings.filterwarnings("ignore")

    # Load Libraries
    import numpy as np
    # Create an array
    sales = np.array([4352, 233, 3245, 256, 2394])
    print(); print(sales)

    # Mean value of the array
    print(); print(sales.mean())

    # Total amount of deaths
    print(); print(sales.sum())

    # Smallest value in the array
    print(); print(sales.min())

    # Largest value in the array
    print(); print(sales.max())

Kickstarter_Example_51()
***************How to do numerical operations in Python using Numpy***************

[4352  233 3245  256 2394]

2096.0

10480

233

4352