code: def windsorization(data, col, para, strategy="both"):
      """
      top-coding & bottom coding (capping the maximum of a distribution at an arbitrarily set value,vice versa)
      """
  
      data_copy = data.copy(deep=True)
      if strategy == "both":
          data_copy.loc[data_copy[col] > para[0], col] = para[0]
          data_copy.loc[data_copy[col] < para[1], col] = para[1]
      elif strategy == "top":
          data_copy.loc[data_copy[col] > para[0], col] = para[0]
      elif strategy == "bottom":
          data_copy.loc[data_copy[col] < para[1], col] = para[1]
      return data_copy
  
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 6 for calling a global function with example usage: windsorization(data, col, para, strategy) and returns: data_copy