merge_machine/missing_values.py
def mv_from_usual_forms(top_values, probable_missing_values, score=0.5):
    """Compares top values to common expressions for missing values"""
    to_return = []
    for val in top_values.index:
        if val.lower() in [x.lower() for x in probable_missing_values]:
            to_return.append((val, score, 'usual'))
    return to_return
Compares top values to common expressions for missing values
Compares top values to common expressions for missing values
Compares top values to common expressions for missing values
def mv_from_usual_forms(top_values, probable_missing_values, score=0.5):
    to_return = []
    for val in top_values.index:
        if val.lower() in [x.lower() for x in probable_missing_values]:
            to_return.append((val, score, 'usual'))
    return to_return
def mv_from_usual_forms ( top_values , probable_missing_values , score = 0.5 ) : to_return = [ ] for val in top_values . index : if val . lower ( ) in [ x . lower ( ) for x in probable_missing_values ] : to_return . append ( ( val , score , 'usual' ) ) return to_return
Compares top values to common expressions for missing values
Compares top values to common expressions for missing values
"""Compares top values to common expressions for missing values"""
top_values
probable_missing_values
score