Skip to content

Instantly share code, notes, and snippets.

On vacation

Ilya Jackson Jackil1993

On vacation
View GitHub Profile
YohanObadia /
Last active Mar 25, 2021
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):