Calculating array stats
Not only can you perform elementwise calculations on NumPy arrays, you can also calculate summary stats such as mean and standard deviation of arrays using functions from NumPy.
numpy
is imported as np
and the array prices
(from the previous exercise) is available in your workspace.
Diese Übung ist Teil des Kurses
Introduction to Python for Finance
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Calculate the mean
prices_mean = np.____(____)
print(prices_mean)