code: def remove_length_outliers(df, columnname):
      
      return df[df[columnname] < (np.median(df[columnname]) + 3 * np.std(df[columnname]))]
docs: Remove records with length-outliers above 3 standard deviations from the median.