title: pandas read ASCII formatted table
body: <p>EDIT:</p>
  
  <p>I found partial answer here:</p>
  
  <p><a href="https://stackoverflow.com/a/26551913/2230844">https://stackoverflow.com/a/26551913/2230844</a></p>
  
  <p><a href="https://stackoverflow.com/a/15026839/2230844">https://stackoverflow.com/a/15026839/2230844</a></p>
  
  <hr>
  
  <p>How can I read in pandas such ASCII formatted table:</p>
  
  <pre><code>      ----------------------------------------------------
        |   col1         col2         col3          col4   |
        ------------ ------------ ------------ -------------
   1002 0.402397E-01 0.883513E-02 0.450885E-01 0.118748E-02
   1003 0.105235     0.474509E-02 0.118508     0.168397E-03
   1004 0.102625     0.225842E-02 0.317864E-02 0.997383    
      1 0.603750     0.475112E-01 0.679590     0.114713E-02
      2 0.534171E-01 0.119815E-01 0.600187E-01 0.830949E-04
      3 0.283291E-01 0.119353E-01 0.317530E-01 0.243996E-04
    104 0.739759E-02 0.463873E-02 0.827061E-02 0.145207E-05
       -----------------------------------------------------
  </code></pre>
  
  <p>I noticed this answer using <code>read_fwf()</code>, but it requires to manually specify the widths of columns:</p>
  
  <p><a href="https://stackoverflow.com/questions/14859085">Reading from file a hierarchical ascii table using Pandas</a></p>