Skip to content

Instantly share code, notes, and snippets.

View SaravananStat's full-sized avatar

Saravanan Natarajan SaravananStat

  • Chennai
View GitHub Profile
@YohanObadia
YohanObadia / knn_impute.py
Last active January 25, 2024 14:23
Imputation of missing values with knn.
import numpy as np
import pandas as pd
from collections import defaultdict
from scipy.stats import hmean
from scipy.spatial.distance import cdist
from scipy import stats
import numbers
def weighted_hamming(data):