Python NumPy Module Cheatsheet: Unterschied zwischen den Versionen

Aus MattWiki
Die Seite wurde neu angelegt: „== Variance == <syntaxhighlight lang="python3">import numpy as np dividends_microsoft_eur = [0.6358, 0.6308, 0.6364, 0.6854, 0.6876, 0.7016, 0.7016, 0.7906] variance_dividends_microsoft = np.var(dividends_microsoft_eur) print('The variance of Microsoft stock dividends in 2023 and 2024 is', variance_dividends_microsoft)</syntaxhighlight> == Standard Deviation == Kategorie:Python
 
K Matt verschob die Seite Python Numpy nach Python NumPy Module Cheatsheet, ohne dabei eine Weiterleitung anzulegen
(kein Unterschied)

Version vom 28. Februar 2025, 09:20 Uhr

Variance

import numpy as np

dividends_microsoft_eur = [0.6358, 0.6308, 0.6364, 0.6854, 0.6876, 0.7016, 0.7016, 0.7906]
variance_dividends_microsoft = np.var(dividends_microsoft_eur)

print('The variance of Microsoft stock dividends in 2023 and 2024 is', variance_dividends_microsoft)

Standard Deviation