title: Python KeyError Exception
body: <p>I am facing problem in this section showing KeyError: 'BrandName' <a href="https://i.stack.imgur.com/ZjKK6.jpg" rel="nofollow noreferrer">Here is the screenshot of my below program output</a> please help me to solve this error.</p>
  
  <pre><code>top_10_brands = top_10_brands.reset_index()
  tt_brand = top_10_brands['BrandName']
  tt_brand2 = tt_brand.reset_index()
  top_10_brand_list = list(set(tt_brand2['BrandName']))
  top_10_brand_list.remove('All')
  </code></pre>