Efficient way for calculating power of signal in python

26 Feb stackoverflow.com
Given a n_sample brain signals, I want to compute the power for each sample