title: How can I create a matrix from a csv file that displays relations between certain objects?
body: <p>I have very little experience in programming and I cannot understand how I can turn  a csv file that looks like this:</p>
  <pre><code>house_1, house_2, distance
  
  John, Mary, 10
  
  Bob, John, 8
  
  Mary, Bob, 7
  </code></pre>
  <p>to a matrix that looks like this</p>
  <pre><code>      John  Mary Bob
  
   John  0     10    8
  
   Mary  10     0    7
  
   Bob   8      7    0
  </code></pre>
  <p>using Python</p>