def _string_dist_basic(str1, str2):
    assert isinstance(str1, unicode)
    assert isinstance(str2, unicode)
    str1 = unidecode(str1).decode('ascii')
    str2 = unidecode(str2).decode('ascii')
    str1 = re.sub(r'[^a-z0-9]', '', str1.lower())
    str2 = re.sub(r'[^a-z0-9]', '', str2.lower())
    if not str1 and not str2:
        return 0.0
    return levenshtein_distance(str1, str2) / float(max(len(str1), len(str2)))
Return number of non-NA/null observations in the Series
dataset/ETHPy150Open beetbox/beets/beets/autotag/hooks.py/_string_dist_basic--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/series.py/Series.count