title: YahooFinancials: Writing multidimensional dictionary to csv
body: <p>There's a nice package to load financial data, but it stores it in a multidimensional dictionary and I cant figure it out how to store the data properly in a csv file, column by column.</p>
  
  <pre><code>from yahoofinancials import YahooFinancials
  
  ticker = 'AAPL'
  yahoo_financials = YahooFinancials(ticker)
  
  balance_sheet_data_qt = yahoo_financials.get_financial_stmts('quarterly', 'balance')
  
  import csv
  
  with open("Yahooprices.csv", "w") as csv_file:
      csv_app = csv.writer(csv_file, delimiter="\t")
      for row in balance_sheet_data_qt["balanceSheetHistoryQuarterly"]["AAPL"][0].items():
          csv_app.writerow(row)
  </code></pre>
  
  <p>I know what I wanna do is simple, however, I can't write it to a csv file that it looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/EYcSh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EYcSh.jpg" alt="Table"></a>
  What am I doing wrong?
  The dictionary has just one <code>.keys()</code> and has a size of 1.. nevertheless, there are many <code>.items()</code>, which I'd like to split by columns/store in the csv.</p>