code: def fit(self, xdata, ydata):
      import statsmodels.api as sm
  
      self.model = sm.nonparametric.lowess(
          ydata, xdata.T[0], frac=self.frac, it=self.it
      )
      return self
  
file_path: scattertext/scattertext/smoothing/lowess.py
imports: import numpy
  import pandas
label_desc: Use image node_id 2 for calling the Lowess obj's underlying member method code with example usage: obj.fit(xdata, ydata) and returns: self