title: Draw a line chart using multiple columns data (pandas)
body: <p>I am trying to draw a line chart from the following data. On the x-axis, I want to show the year, on the y-axis, I want to show the population of different 'Borough'. Basically, I want to draw the population of all the boroughs throughout the years. I wrote the following code to transpose the data and draw the line graph. I am getting error- &quot;no numeric data to plot&quot;. First figure is of the transposed data, second figure is of the original data</p>
  <pre><code>bar_plot = bar_plot.transpose()
  bar_plot
  bar_plot.columns = ['NYC Total Population', 'Bronx Population', 'Brooklyn Population'   , 'Manhattan Population',   'Queens Population',    'Staten Island Population']
  bar_plot.drop('Borough')
  bar_plot.plot(kind = 'line', y = ['NYC Total Population',   'Bronx Population', 'Brooklyn Population'   , 'Manhattan Population',   'Queens Population',    'Staten Island Population'])
  </code></pre>
  <p><a href="https://i.stack.imgur.com/wFNPu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wFNPu.png" alt="I transposed the data and changed it to this" /></a></p>
  <p><a href="https://i.stack.imgur.com/rAyxC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rAyxC.png" alt="The original dataframe looked like this" /></a></p>