I know there's many questions about this (e.g. here), I just can't see what I'm doing wrong.
I have this data:
Prod T1 T2
A 0 4
B 0 6.7
C 0 8.8
D 0 6.8
E 0 6.75
F 0 7.8
G 0 33.5
H 0 21
I want the plot to have 8 lines (A-H), each line showing growth from time period 1 (T1) to time period 2 (T2).
I wrote this code:
# libraries
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# Data
df=pd.DataFrame({'Product':['A','B','C', 'D','E','F','G','H'], 'Time Period 2': ['4','6.7','8.8','6.8','6.75','7.8','33.5','21.00']})
# multiple line plot
plt.plot('Product','Time Period 2',data=df,marker='o',color='orange',linewidth=2)
plt.legend(loc='upper left')
The output is each product (A-H) on the x axis and the T2 numbers on the Y axis:
But what I want is for each product to have it's own growth line from T1 to T2 (e.g. like this example from the internet):
Can someone show me how to change this so the X axis just has two values 'time 1' and time 2', then there are multiple lines (A-H), showing growth from T1 to T2 (so e.g. for A, the T1 y value is 0 and the T2 y value is 4).

