Sampling frequency of the x time series in units of Hz. Defaults
to 1.0.

window : str or tuple or array_like, optional

Desired window to use. See get_window for a list of windows and
required parameters. If window is an array it will be used
directly as the window. Defaults to None; equivalent to ‘boxcar’.

nfft : int, optional

Length of the FFT used. If None the length of x will be used.

detrend : str or function or False, optional

Specifies how to detrend x prior to computing the spectrum. If
detrend is a string, it is passed as the type argument to
detrend. If it is a function, it should return a detrended array.
If detrend is False, no detrending is done. Defaults to ‘constant’.

return_onesided : bool, optional

If True, return a one-sided spectrum for real data. If False return
a two-sided spectrum. Note that for complex data, a two-sided
spectrum is always returned.

scaling : { ‘density’, ‘spectrum’ }, optional

Selects between computing the power spectral density (‘density’)
where Pxx has units of V**2/Hz if x is measured in V and computing
the power spectrum (‘spectrum’) where Pxx has units of V**2 if x is
measured in V. Defaults to ‘density’

axis : int, optional

Axis along which the periodogram is computed; the default is over
the last axis (i.e. axis=-1).