'Resample data.
This function operates in-place.
Parameters
sfreq : float
New sample rate to use
npad : int | str
Amount to pad the start and end of the data.
Can also be "auto" to use a padding that will result in
a power-of-two size (can be much faster).
window : string or tuple
Window to use in resampling. See scipy.signal.resample.
Returns
evoked : instance of mne.Evoked
The resampled evoked object.'

def resample(self, sfreq, npad='auto', window='boxcar'):

    sfreq = float(sfreq)
    o_sfreq = self.info['sfreq']
    self.data = resample(self.data, sfreq, o_sfreq, npad, (-1), window)
    self.info['sfreq'] = sfreq
    self.times = ((np.arange(self.data.shape[1], dtype=np.float) / sfreq) + self.times[0])
    self.first = int((self.times[0] * self.info['sfreq']))
    self.last = ((len(self.times) + self.first) - 1)
    return self
