<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def spectrum(self):
 """ Returns the Fourier transformed and shifted data :return: """

        return numpy.fft.fftshift(numpy.fft.fft(self, axis=-1), axes=-1)