Smoothing
Noisy data is difficult to deal with, so we often need to do some smoothing. Besides calculating moving averages, we can use one of the NumPy functions to smooth data.
The hanning
function is a windowing function formed by a weighted cosine. There are other window functions that will be covered in greater detail in later chapters.