title: Python - convert edge list to adjacency matrix
body: <p>I have data in the following format:</p>
  
  <pre><code>user,item,rating
  1,1,3
  1,2,2
  2,1,2
  2,4,1
  </code></pre>
  
  <p>and so on
  I want to convert this in matrix form</p>
  
  <p>So, the out put is like this</p>
  
  <pre><code>Item--&gt; 1,2,3,4....
  user
  1       3,2,0,0....
  2       2,0,0,1
  </code></pre>
  
  <p>....and so on.. </p>
  
  <p>How do I do this in python?</p>
  
  <p>THanks</p>