This video shows you exactly how to calculate the weighted average of a one-dimensional or multi-dimensional array in Python's library for numerical computations (NumPy).
Read the Book: Coffee Break NumPy.
https://blog.finxter.com/coffee-break-numpy/
Become a better coder! Download the 5x Python Cheat Sheet Course (PDF). It’s free!
*** Click: https://blog.finxter.com/subscribe/ ***
🐍 Cheating in Python? Of course! 🐍
See you soon -- it’s fun! 🤓
Dive even deeper into the (weighted) one- and multi-dimensional average here:
https://blog.finxter.com/how-to-calculate-weighted-average-numpy-array-along-axis/