title: How to translate lists of list intro dictionaries of dictionaries?
body: <p>so i need to create some dictionaries in dictionaries in dictionaries... I really could use a help how to write it. I am trying to figure it out but i can't get a pass creating 3rd dictionary.</p>
  
  <p>so i have a list of list with my data it looks like it:</p>
  
  <pre class="lang-py prettyprint-override"><code>my_data = [['Floor_one', 'Working', 'Dogs', 'May', '2000'],
  ['Floor_one', 'Jobless', 'Cats', 'June', '3000'], 
  ['Floor_two', 'Working', 'Dogs', 'May', '2100'],
  ['Floor_two', 'Jobless', 'Cats', 'June', '2200'],
  ['Floor_three', 'Working', 'Dogs', 'May', '2300'],
  ['Floor_three', 'Working', 'Cats', 'June', '4500']]
  </code></pre>
  
  <p>And i need to create a dictionaries out of that lists of list that is gonna look like that:</p>
  
  <pre class="lang-py prettyprint-override"><code>my_dict = {Floor: {Month: {Working:{Dogs:200, Cats: 300}, Jobless:{Dogs:200, Cats: 300}
  </code></pre>
  
  <p>so in my case it should be like it:</p>
  
  <pre class="lang-py prettyprint-override"><code>my_dict = {Floor_one: 
  {May: {Working:{Dogs:200, Cats: 300}, Jobless:{Dogs:200, Cats: 300}, 
  June: {Working:{Dogs:200, Cats: 300}, Jobless:{Dogs:200, Cats: 300}
  {Floor_two: 
  {May: {Working:{Dogs:800, Cats: 400}, Jobless:{Dogs:1000, Cats: 3300}, 
  June: {Working:{Dogs:700, Cats: 500}, Jobless:{Dogs:2100, Cats: 2300}
  </code></pre>
  
  <p>Of course my list of list is much larger like 300 lines, i have much more floors and months.
  My current code looks like it:</p>
  
  <pre class="lang-py prettyprint-override"><code>def my_function(our_data) # our data is my list of lists
      for line in our_data[1:]: #ignore first line since is name of columns
              if line[0] not in nested_dict:
                  nested_dict[line[0]] = 0
      return nested_dict
  </code></pre>
  
  <p>It creates my floors but i don't know how to go from here.
  Could anyone help me with that please? :) I am doing it so i could find out how many i have spend on X things with specific tributes. For example i ask for (Floor_one, May, Working, Cats) and response will be 300</p>