I have a dataframe that looks like the following--
month source_id revenue
April PA0057 16001.0
PA0202 54063.0
PA0678 24219.0
PA0873 41827.0
August PA0057 40673.0
PA0202 75281.0
PA0678 60318.0
PA0873 55243.0
December PA0057 49781.0
PA0202 71797.0
PA0678 24975.0
PA0873 57630.0
February PA0057 13193.0
PA0202 44211.0
PA0678 29862.0
PA0873 36436.0
January PA0057 65707.0
PA0202 67384.0
PA0678 29392.0
PA0873 46854.0
July PA0057 31533.0
PA0202 49663.0
PA0678 10520.0
PA0873 53634.0
June PA0057 97229.0
PA0202 56115.0
PA0678 72770.0
PA0873 51260.0
March PA0057 44622.0
PA0202 54079.0
PA0678 36776.0
PA0873 42873.0
May PA0057 38077.0
PA0202 68103.0
PA0678 78012.0
PA0873 83464.0
November PA0057 26599.0
PA0202 53050.0
PA0678 87853.0
PA0873 65499.0
October PA0057 47638.0
PA0202 44445.0
PA0678 49983.0
PA0873 57926.0
September PA0057 46171.0
PA0202 49202.0
PA0678 42598.0
PA0873 65660.0
I wanted to draw a line plot where the x-axis is the month , the y-axis is revenue and I have 4 source_id- PA0057, PA0202, PA0678, PA0873, so I wanted one line for each of the source ids
How do I show this as 4 lines on a line graph??
I have used the below
import matplotlib.pyplot as pls
my_df.plot(x='month', y='revenue', kind='line')
plt.show()
but it doesn't give me the expected result as I am not feeding in source ids
