I have a bigger dataframe that resembles this format:
df = pd.DataFrame([{'name': 'A', '2015': 99, '2016':98, '2017': '95', '2018':'99'}, {'name': 'B', '2015': 76, '2016':89, '2017': 83, '2018': 85}, {'name': 'C', '2015': 88, '2016':89, '2017': 91, '2018':91}])
df.set_index('name', inplace=True)
I would like to plot A, B, and C in a multiline plot for just the years of 2016 and 2018. After searching for a while, I can't seem to figure how to plot specific columns from a dataframe. Is the best practice creating a new one for each plot?


