I find a function to detect outliers from columns but I do not know how to remove the outliers
is there a function for excluding or removing outliers from the colum
def outlier(): import pandas as pd df1=pd.read_csv("......\\train.csv") _, bp = pd.DataFrame.boxplot(df1, return_type='both') outliers = [flier.get_ydata() for flier in bp["fliers"]] out_liers = [i.tolist() for i in outliers]