Skip to content

Commit 3480f20

Browse files
committed
add example result
1 parent ccfae36 commit 3480f20

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

eda_utils_py/eda_utils_py.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,22 @@ def outlier_identifier(dataframe, columns=None, method="trim"):
207207
>> import pandas as pd
208208
>> from eda_utils_py import cor_map
209209
210-
>> data = pd.DataFrame({
211-
>> 'SepalLengthCm':[5.1, 4.9, 4.7],
212-
>> 'SepalWidthCm':[1.4, 1.4, 99],
213-
>> 'PetalWidthCm:[0.2, 0.2, 0.2],
214-
>> 'Species':['Iris-setosa', 'Iris-virginica', 'Iris-germanica']
215-
>> })
210+
>> df = pd.DataFrame({
211+
>> 'SepalLengthCm' : [5.1, 4.9, 4.7, 5.5, 5.1, 50, 5.4, 5.0, 5.2, 5.3, 5.1],
212+
>> 'SepalWidthCm' : [1.4, 1.4, 20, 2.0, 0.7, 1.6, 1.2, 1.4, 1.8, 1.5, 2.1],
213+
>> 'PetalWidthCm' : [0.2, 0.2, 0.2, 0.3, 0.4, 0.5, 0.5, 0.6, 0.4, 0.2, 5]
214+
>>})
216215
217216
>> outlier_identifier(data)
218-
217+
>> SepalLengthCm SepalWidthCm PetalWidthCm
218+
>> 0 5.1 1.4 0.2
219+
>> 1 4.9 1.4 0.2
220+
>> 2 5.5 2.0 0.3
221+
>> 3 5.1 0.7 0.4
222+
>> 4 5.4 1.2 0.5
223+
>> 5 5.0 1.4 0.6
224+
>> 6 5.2 1.8 0.4
225+
>> 7 5.3 1.5 0.2
219226
220227
"""
221228
if not isinstance(dataframe, pd.DataFrame):

0 commit comments

Comments
 (0)