title: How to create dynamic number of variables from split array in Python 3.x?
body: <p>I have a pandas dataframe <code>df</code> which I am splitting using numpy <code>split_array</code>. I then assign variables <code>a,b,c,d</code> to these split chunks</p>
  
  <pre><code>num_partitions = 4
  # number of variables needs to be the same as num_partitions
  a,b,c,d = np.array_split(df, num_partitions)
  # do work on a,b,c,d
  .
  .
  .
  </code></pre>
  
  <p>My question is, how can I dynamically create these variables and assign them to the split chunks in case <code>num_partitions</code> were to change? So for example, if <code>num_partitions</code> were to change to 100 then I would have to manually type out variables <code>var_0,...,var_99</code> in my current method, which I don't want to do for obvious reasons. Thanks in advance</p>