SyntaxFix
Write A Post
Hire A Developer
Questions
If you have seaborn installed, an easier method that does not require you to perform pivot:
seaborn
pivot
import seaborn as sns sns.lineplot(data=df, x='x', y='y', hue='color')