code: def perd_feat(df, cols):
      for col in cols:
          sig = signal.periodogram(df[col], fs=1, return_onesided=False)
          df[col + "_FREQ"] = sig[0]
          df[col + "_POWER"] = sig[1]
      return df
  
imports: import pandas
  import numpy
  import statsmodels.api
  from scipy import signal, integrate
  from pykalman import UnscentedKalmanFilter
  from tsaug import *
  from fbprophet import Prophet
  import pylab
  from seasonal.periodogram import periodogram
label_desc: Use image node_id 17 for calling a global function with example usage: perd_feat(df, cols) and returns: df