title: Storing Variable Length Lists in an Array or Table, Python
body: <p>I am looking for suggestions on how to store variable length lists in a table.</p>
  
  <p>I am working on an optimization program and I am trying to setup a table with all of my possible permutations.</p>
  
  <p>I have a table with items 1 - 9 with a column for width.</p>
  
  <p>The width of each item can have one or more different discrete values.</p>
  
  <p>For example:</p>
  
  <pre><code>1.Width = [100, 125, 150]
  2.Width = [100]
  3.Width = [100, 125]
  </code></pre>
  
  <p>When I try to add a list to a cell in a pandas table:</p>
  
  <pre><code>table.loc[1,'Width'] = [100, 125, 150]
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>ValueError: setting an array element with a sequence.
  </code></pre>