I\'m reading a pandas dataframe, and trying to generate a plot from it. In the plot, the data points seem to be getting connected in an order determined by ascending y value
Is the order of values in COL1 different from the csv?
You can sort by COL1 first, add this before plotting:
data.sort('COL1', inplace=True)