title: TypeError: 'NoneType' object is not subscriptable dictionary python
body: <p><strong>The code</strong>  </p>
  
  <pre><code>import pandas as pd
  import clearbit
  import json
  clearbit.key = 'sk_1915de5d2d7b6e245d6613e3d2188368'
  df = pd.read_csv("/home/vipul/Desktop/new.csv", sep=',', encoding="utf-8")
  
  saved_column = df['Company']
  print(saved_column)
  i=0
  NoneType = type(None)
  for data in saved_column:   
  
      n = saved_column[i]
      i = i+1
      data = clearbit.NameToDomain.find(name=n)
      print(data)
      df['domain'][i] = data['domain']
  
  df.to_csv("/home/vipul/Desktop/new.csv",index = False, skipinitialspace=False)
  
  print("File saved to desktop as new.csv")
  </code></pre>
  
  <p>How to handle the type none object and store some default value in the csv file corresponding company name  </p>
  
  <p><strong>new.csv:</strong> </p>
  
  <pre><code>Company
  ‎Accenture
  ‎AND Digital
  ‎Accenture
  ‎Kite Consulting Group
  ‎Capgemini
  ‎Accenture
  ‎Capgemini
  ‎Accenture UK
  ‎Accenture  
  </code></pre>
  
  <p><strong>print(data)</strong></p>
  
  <pre><code>Name: Company, dtype: object
  {'domain': 'accenture.com', 'logo': 'https://logo.clearbit.com/accenture.com', 'name': 'Accenture'}
  {'domain': 'and.digital', 'logo': 'https://logo.clearbit.com/and.digital', 'name': 'AND Digital'}
  {'domain': 'accenture.com', 'logo': 'https://logo.clearbit.com/accenture.com', 'name': 'Accenture'}
  None
  {'domain': 'capgemini.com', 'logo': 'https://logo.clearbit.com/capgemini.com', 'name': 'Capgemini'}
  {'domain': 'accenture.com', 'logo': 'https://logo.clearbit.com/accenture.com', 'name': 'Accenture'}
  {'domain': 'capgemini.com', 'logo': 'https://logo.clearbit.com/capgemini.com', 'name': 'Capgemini'}
  None
  {'domain': 'accenture.com', 'logo': 'https://logo.clearbit.com/accenture.com', 'name': 'Accenture'}  
  </code></pre>
  
  <p>This has none type which gives type error </p>