Skip to content

Commit e2bd7ab

Browse files
committed
add method options for outlier_identifier function
1 parent 57cd2c6 commit e2bd7ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eda_utils_py/eda_utils_py.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def cor_map(dataframe, num_col):
7575
pass
7676

7777

78-
def outlier_identifier(dataframe, columns=None, method="somefunction"):
78+
def outlier_identifier(dataframe, columns=None, method="trim"):
7979
"""
8080
A function that identify and deal with outliers based on the method the user choose
8181
@@ -87,6 +87,8 @@ def outlier_identifier(dataframe, columns=None, method="somefunction"):
8787
The target columns where the function needed to be performed. Defualt is None, the function will check all columns
8888
method : string
8989
The method of dealing with outliers.
90+
- if "trim" : we completely remove data points that are outliers.
91+
- if "median" : we replace outliers with median values
9092
9193
Returns
9294
-------

0 commit comments

Comments
 (0)