How do I sort data based on a pattern in Python?

85 Views Asked by At

I have a set of data (an Echelle diagram) i would like to sort out. Visually it's clear to see a pattern of two close set of points and a set further away. How do I split the three data sets from each other?

I hope you can help me!

Echelle diagram example

1

There are 1 best solutions below

1
On

Use k-means clustering on the date converted to decimal seconds, hours or days

How to convert a Python datetime object to seconds