def precision(judged_data):
    """
    Our relevance judgments are on a graded scale of 0-3, where scores of 1-3 are considered
    relevant, and less than 1 is irrelevant. We compute precision of the result set based on
    this quanitization.

    Args:
        judged_data (pandas.DataFrame): A DataFrame with at a minimum query, domain, judgment,
            result_fxf, and result_position columns

    Returns:
        A floating point value corresponding to the precision of the result set.
    """
    return (len(judged_data[judged_data["judgment"] >= 1]) /
            float(len(judged_data))) if len(judged_data) else 1.0