Skip to content

Commit d74a26d

Browse files
authored
Merge pull request #49 from wangjc640/main
add example result
2 parents 5da24bb + c385c7a commit d74a26d

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

eda_utils_py/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
__version__ = '0.1.12'
1+
__version__ = '0.1.12'
2+

eda_utils_py/eda_utils_py.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,24 @@ def outlier_identifier(dataframe, columns=None, method="trim"):
211211
>> import pandas as pd
212212
>> from eda_utils_py import cor_map
213213
214-
>> data = pd.DataFrame({
215-
>> 'SepalLengthCm':[5.1, 4.9, 4.7],
216-
>> 'SepalWidthCm':[1.4, 1.4, 99],
217-
>> 'PetalWidthCm:[0.2, 0.2, 0.2],
218-
>> 'Species':['Iris-setosa', 'Iris-virginica', 'Iris-germanica']
219-
>> })
214+
215+
>> df = pd.DataFrame({
216+
>> 'SepalLengthCm' : [5.1, 4.9, 4.7, 5.5, 5.1, 50, 5.4, 5.0, 5.2, 5.3, 5.1],
217+
>> 'SepalWidthCm' : [1.4, 1.4, 20, 2.0, 0.7, 1.6, 1.2, 1.4, 1.8, 1.5, 2.1],
218+
>> 'PetalWidthCm' : [0.2, 0.2, 0.2, 0.3, 0.4, 0.5, 0.5, 0.6, 0.4, 0.2, 5]
219+
>>})
220220
221-
>> outlier_identifier(data)
222221
222+
>> outlier_identifier(data)
223+
>> SepalLengthCm SepalWidthCm PetalWidthCm
224+
>> 0 5.1 1.4 0.2
225+
>> 1 4.9 1.4 0.2
226+
>> 2 5.5 2.0 0.3
227+
>> 3 5.1 0.7 0.4
228+
>> 4 5.4 1.2 0.5
229+
>> 5 5.0 1.4 0.6
230+
>> 6 5.2 1.8 0.4
231+
>> 7 5.3 1.5 0.2
223232
224233
"""
225234
if not isinstance(dataframe, pd.DataFrame):

0 commit comments

Comments
 (0)