I am new to python and getting this error, please help me out correct it.
AttributeError: 'module' object has no attribute 'fft2'
Program
import numpy, scipy , pylab , wave , scipy.io.wavfile as wav
xs = numpy.arange (1,100,.01)
rate , sample = wav.read("pianotest.wav")
fft2=scipy.fft2(sample) # algo applied
bp=fft2[:]
for i in range(len(bp)):
if i>=10:bp[i]=0
ibp=scipy.ifft2(bp) # inverse algo
print"to check dimension"
print("sampling rate = {} Hz, length = {} samples, channels = {}".format(rate, *sample.shape))
print(sample)