from sklearn import metrics

def rsquared(y_actual, y_pred):
    # r squared
    value = round(metrics.r2_score(y_actual, y_pred), 3)
    passed = "✔️" if value > 0.8 else "❌"
    return value, passed