title: Getting a list of variables from a function in python
body: <p>I'm working on a project related urban public space.</p>
  
  <p>With the following function I got an array related to a raster band of an urban environment.</p>
  
  <pre><code>#array generation function
  def shade_array (index):
      altitude = df.altitude[index]
      azimut = df.azimut[index]
      shade = es.hillshade(elevation, azimuth = azimut, altitude = altitude)
      return shade
  </code></pre>
  
  <p>Now I want to iterate the function for a different days an hour from a dataframe.
  I run the following for-loop:</p>
  
  <pre><code>for i in df.index:
      shade_array(i)
  </code></pre>
  
  <p>The point is that what I need is to store the info in a list of variables, like:</p>
  
  <pre><code>array_list = [array_01, array_02,..., array_365]
  </code></pre>
  
  <p>to cross and make some transformations in the values obtained.
  How can I get to it?</p>