title: Dask method on dataframe to return a dictionary of applied method results
body: <p>I have a function that creates a list of values. Here's a simplified version of what such a function might do, when given a row from a dataframe.</p>
  
  <pre><code>def generate_key_list_pair(row):
      some_list = do_something_to_make_a_list(row)
      return some_list
  </code></pre>
  
  <p>I would like to then apply that method to all rows in a Dask dataframe and return a dictionary such that:</p>
  
  <pre><code>ddf.apply(generate_key_list_pair)
  </code></pre>
  
  <p>...would return a dictionary whose keys were the row ids and whose values were the results from each rows applied function, e.g.:</p>
  
  <pre><code>{
      1: [3.0, 4.12, 5.2, 23.1, 4.9],
      ...
      n: [9.34, 8.12, 3.42, 12.1, 34.2]
  }
  </code></pre>
  
  <p>Where <code>1</code> through <code>n</code> would be the <code>id</code> column value from the row Series object passed into each <code>generate_key_list_pair</code> function call.</p>
  
  <p>Edit: 1...n could be a unique identifier that exists within a column in the original dataframe.</p>