Plotting multiple lines, in different colors, with pandas dataframe
Another simple way is to use the pandas.DataFrame.pivot function to format the data. Use pandas.DataFrame.plot to plot. Providing the colors in the ‘color’ column exist in matplotlib: List of named colors, they can be passed to the color parameter.