Skip to content

Instantly share code, notes, and snippets.

View sbasarans's full-sized avatar

Sümeyye BAŞARAN sbasarans

View GitHub Profile
import pandas as pd
import numpy as np
d = {'col1': [1, 2, 3, 4, 5, 6, 100], 'col2': [ 2, 4, 6, 8, 10, 12, 200]}
df = pd.DataFrame(d)
print(df)
def detect_outlier(df, threshold):
outliers = []