Skip to content

Tag: grouping

How to group data from a list of namedtuples

In python, I have the following data in a list of namedtuple in memory: I want to group the data by : cluster cluster and host cluster and host and database cluster and host and database and diskgroup I won’t need the disk details. In each group I want to : sum the values of read_bytes_per_sec and write…