title: Read scraped data vertically out of table instead horizontally Python
body: <p>i'm writing a web scraper with python and beautifulsoup to get data out of a table from a webpage.
  Link to the table is in the code (url01)</p>
  
  <p>I want to know if there is a possibility that the data will be read vertically and not horizontally from the table</p>
  
  <p>Here is my code</p>
  
  <pre><code>import requests
  import json
  from bs4 import BeautifulSoup
  from itertools import islice
  
  #URL declaration
  url01 = 'https://www.statistik.at/web_de/statistiken/wirtschaft/preise/baukostenindex/030979.html'
  
  #BeautifulSoup4
  response = requests.get(url01, timeout=5)
  content = BeautifulSoup(response.content, 'html.parser')
  
  #deletes all the empty tags
  empty_tags = content.find_all(lambda tag: not tag.contents)
  [empty_tag.extract() for empty_tag in empty_tags]
  
  #Find all td in class body in div table table-hover
  data = content.find_all('td')
  #print (data)
  
  numbers = [d.text.encode('utf-8') for d in data]
  #print (numbers)
  
  #create string
  str1 = ''.join(str(e) for e in numbers)
  #print (str1)
  
  str_splt = str1.split('b')
  #print (str_splt)
  
  #Split list into several sublists
  length_to_split = [45, 45, 45, 110, 110, 110, 188, 188, 188, 253, 253, 253, 383, 383, 383]
  Input = iter(str_splt)
  Output = [list(islice(Input, elem))
            for elem in length_to_split]
  print (Output[3])
  
  
  #Python dictionary
  dataDict = {
      '2015 Lohn': None,
      '2015 Sonstiges': None,
      '2015 Insgesamt': None,
      'Insgesamt': None
      }
  
  dataDict['Insgesamt'] = str_splt
  #print (dataDict)
  
  #save dictionary in json file
  with open('indexData.json', 'w') as f:
      json.dump(dataDict, f)
  </code></pre>
  
  <p>When I execute the program and want to print out my first sub list, then these are the results. It has the wanted length (45) but it was read horizontally out of the table which makes it useless</p>
  
  <pre><code>['', "'108,6'", "'110,8'", "'109,8'", "'122,1'", "'114,3'", "'118,0'", "'140,6'", "'131,9'", "'136,0'", "'162,0'", "'166,3'", "'165,2'", "'261,9'", "'189,8'", "'222,5'", "'108,6'", "'111,4'", "'110,1'", "'122,1'", "'115,0'", "'118,4'", "'140,6'", "'132,6'", "'136,4'", "'162,0'", "'167,2'", "'165,7'", "'261,9'", "'190,8'", "'223,1'", "'105,2'", "'111,9'", "'108,9'", "'118,2'", "'115,5'", "'117,1'", "'136,2'", "'133,2'", "'134,9'", "'157,0'", "'168,0'", "'163,9'", "'253,7'", "'191,7'"]
  </code></pre>