title: Python: Calculating the Path from Parent Child Relationships
body: <p>Parent) as csv (700,000 rows) input</p>
  
  <pre><code>Child   Parent
  fA00    f0
  fA9 fA0
  fA31    fA0
  fA30    fA0
  fA1 fA00
  dccfA1  fA00
  fA2 fA00
  fA3 fA00
  fA01    fA00
  fA4 fA00
  fA5 fA00
  fA6 fA00
  fA7 fA00
  fA0 fA00
  fA142149    fA00
  fA02    fA00
  fA8 fA00
  qA1 fA10
  fA22    fA10
  fA23    fA10
  fA11    fA10
  qA2     fA10
  fA15    fA11
  fA13    fA11
  fA12    fA11
  fA14    fA13
  fA17    fA16
  fA18    fA17
  fA19    fA17
  fA20    fA17
  fA21    fA19
  etc....
  </code></pre>
  
  <p>It goes up to 14 levels deep.  The top parent is f0</p>
  
  <p>I want to iterate through the child parent relationships to determine the path</p>
  
  <p>Expected Result</p>
  
  <pre><code>f0 --- top
  f0\fa00
  f0\fa00\.Child
  f0\fa00\.Child2etc
  f0\fA0
  f0\fA0\.Child
  f0\fA0\.Child2etc
  </code></pre>
  
  <p>How can I do this in Python?</p>