Robotics & Artificial Intelligence
Write a Python program to demonstrate the use of the NumPy library.
Python Modules
1 Like
Answer
import numpy as np
data = [40, 36, 25, 35, 25, 89]
mean = np.mean(data)
standard_deviation = np.std(data)
print("Mean:", mean)
print("Standard Deviation:", standard_deviation)Output
Mean: 41.666666666666664
Standard Deviation: 21.891144835805694
Answered By
1 Like
Related Questions
Which library includes modules for optimisation, integration, and more?
- NumPy
- Matplotlib
- Pandas
- SciPy
Fill in the blanks:
- ……………. and ……………. are used to organise Python project.
- Pandas is a Python library for ……………. .
- ……………. library supports mathematical operations.
Write a Python program to demonstrate the use of the SciPy library.
Write a Python program to demonstrate the use of the Pandas library.