sorry, if the title is ambiguous. Let me explain the problem. By the way, I'm really new to Data Science, so sorry if I make a statement that doesn't make sense.
Recently came across to a problem which was related to clustering. The coordinates were given for a lot of points. The task was to cluster them. But it is not the type of clustering based on distance. In fact, those points belong to functions and they need to be clustered, accordingly.
This is not what my data looks like, but the problem is the same:
Please take a look here. In the given link, the provided problem is what I am looking for, but it is in R, not Python. When I searched for "functional clustering" in Python, I couldn't find anything. Please direct me in the correct path, if you know how to do it.