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.
New contributor
João Lages is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1