How to Calculate the Standard Deviation of a Numpy Array?

Daily Data Science Puzzle [python] import numpy as np temp_sensor = np.array( [ 18, 22, 22, 18 ]) mean = np.mean(temp_sensor) std = np.std(temp_sensor) print(str(int(mean – std)) + "-" + str(int(mean + std))) [/python] What is the output of this puzzle? *Intermediate Level* (solution below) Numpy is a popular Python library for data science for …

How to Calculate the Standard Deviation of a Numpy Array? Read More »