grow food, not lawn.

Skip to content

[Improvement] New function - occurrences and values

Created by: matheuslins

This is an amazing library and I've had missing of one thing. Is not possible recovery the elements when you to use get_occurrence_of_value function.

Thinking about it, I wrote a new function that do this: get_occurrences_and_values

Dict return:

  • Key: The searched value
  • Value: Dict with occurrences count and values of each occurrence
{
    '2.7 GHz': {
    'occurrences': 1,
    'values': [
        {
            'processor_name': '4',
            'processor_speed': '2.7 GHz',
            'core_details': {
                'total_numberof_cores': '4',
                'l2_cache(per_core)': '256 KB'
            }
        }
        ]
    }
}

Merge request reports