title: Trying to create a pie and bar chart from the data below
body: <p>We're trying to create a pie chart, and a bar chart from the code below. Can anyone help? And what are we doing wrong?</p>
  
  <p>Any help provided would be greatly appreciated. Thanks.</p>
  
  <pre><code>browser = ({'IE': [0.21], 'Chrome': [0.51], 'Firefox': [0.18], 'Safari': [0.06], 'Others': [0.04]})
  x = pd.Series(browser)
  y = pd.Series.sort_values(x)
  z = pd.DataFrame(y)
  fig, axes = plt.subplots(nrows=1, ncols=2)
  z.plot(kind = 'pie', ax = axes[0,0])
  z.plot(kind = 'bar', ax - axes[0,1])
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/vkHwC.png" alt="Pie and Bar Chart"></p>