title: How would I go about speeding up my code?
body: <p>How would I go about speeding up the following the code? I've looked into asyncio and concurrent.futures and neither are very clear to me on how to use them.</p>
  <pre><code>from web3 import Web3
  import json
  import pandas as pd
  import time
  
  start_time = time.time()
  addressCounts = []
  
  i = 1
  
  ## Connect to INFURA HTTP End Point
  infura_url='' #your uri
  w3 = Web3(Web3.HTTPProvider(infura_url))
  
  ## Check Connection
  w3.isConnected()
  
  abi=json.loads('')
  address=&quot;&quot;
  address=Web3.toChecksumAddress(address)
  
  contract=w3.eth.contract(address=address, abi=abi)
  
  
  while i != 55:
      try:
          owner = contract.functions.ownerOf(i).call()
      except:
          pass
  
      i = i + 1
      addressCounts.append(owner)
  
  a = pd.DataFrame({'Address Count': addressCounts})
  </code></pre>