title: Turn a pandas dataframe into a two dimensional array
body: <p>I have a dataframe with three columns.  X, Y, and counts, where counts is the number of occurences where x and y appear together.  My goal is to transform this from a dataframe to an array of two dimensions where X is the name of the rows, Y is the name of the columns and the counts make up the records in the table.</p>
  
  <p>Is this possible? I can elaborate if needed.</p>