def dice_coeff(x, y):
    """Computes the Dice coefficient for similarity of two sets"""
    x = set(x.iloc[0])
    y = set(y.iloc[0])

    numer = 2 * len(x & y)
    denom = len(x) + len(y)
    return numer/denom