code: def remove_outlier(self, data, sd_val):
          
          data = data.dropna()
          data = data[(np.abs(stats.zscore(data)) < float(sd_val)).all(axis=1)]
          return data
docs: Remove outliers from dataframe.
  
          Note
          ----
          1. This function excludes all lines with NA in all columns.
  
          Parameters
          ----------
          data    : pd.DataFrame()
              Dataframe to remove outliers from.
          sd_val  : int
              Standard Deviation Value (specifices how many SDs away is a point considered an outlier)
  
          Returns
          -------
          pd.DataFrame()
              Dataframe with outliers removed.