def count_uniq_by_field(data_frame, field):
    """Count unique values for field

    Args:
        data_frame (DataFrame): data
        field (str): field name

    Returns:
        list: Statistics for HTTP responses
    """
    http_stats = data_frame.proto_code.value_counts().rename_axis(field
        ).reset_index(name='count')
    percent = data_frame.proto_code.value_counts(normalize=True) * 100
    http_stats['percent'] = percent.values
    return http_stats
