Answers for "def remove_outlier(df_in, col_name):"

0

pandas removing outliers from dataframe

df[(df["col"] >= x ) & (df["col"] <= y )]

but it's more readable to use:

df[df["col"].between(x,y)]
Posted by: Guest on July-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language