Question: what is fftshift in python?
Answer: fftshift. numpy.fft. fftshift (x, axes=None)[source] Shift the zero-frequency component to the center of the spectrum. This function swaps half-spaces for all axes listed (defaults to all).