Skip to content
Advertisement

Tag: grouping

Clustering different sets of points with different linear relationships to each other in Python

I need to cluster groups of points with the same linear relationship, as per the code and figure below. Obviously, I wouldn’t have the points that way; I would just have the following x and y. Note the following: the points respect linear relationships with high slope, they present a slight separation from each other, and they all have the

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_bytes_per_sec compute the

Advertisement