title: Calculating Bandpower of a Signal in Python
body: <p>I have to calculate the bandpower of a signal for a certain vector of frequencies in python as a project. In MATLAB it can be done using <code>p = bandpower(pxx,f,'psd')</code> where <code>pxx</code> is Power spectral density vector and <code>f</code>, is a vector of frequencies corresponding to the PSD estimates in pxx. Is there any equivalent function in python that does the same? </p>