Figure 1 Figure 2 I have the following dataframe in python (Fig 1) that defines two distinct linear trends (Fig 2, red and blue). How do I get python to automatically identify the different trends and group them into different dfs? Cluster methods (e.g., kmeans) don't seem to provide a good answer. Continue reading...