I have a lot of points in dataframe. at first, I've grouped them based on their MMSI(each object has different MMSI) now I would like to plot them whereas the color of each plot varies according to its MMSI. after grouping, I have 1024 different MMSI thus I will have 1024 line. I want the color of these lines to be different.
def pl(x):
display = plt.plot(x['X'],x['Y'])
return display
Final_data.groupby('MMSI').apply(pl)