title: How to convert the text file to a dataframe in python?
body: <p>I have a text file which looks like this:</p>
  <p><a href="https://i.stack.imgur.com/1uhwm.png" rel="nofollow noreferrer">text file</a></p>
  <p><a href="https://i.stack.imgur.com/TsC00.png" rel="nofollow noreferrer">how i wanted my dataframe to be</a>
  I wanted to convert this text file to a dataframe using python so that my dataframe looks like the below:</p>
  <p>Below is how my text file looks like:</p>
  <p>Position of point (-61.871,29.65,25.77) (m)</p>
  <p>Surge   Sway    Heave   Roll    Pitch   Yaw Z above wave
  (m) (m) (m) (deg)   (deg)   (deg)   (m)</p>
  <p>Significant amplitude   0.00782328954769049 0.887191653082297   1.16881344399239    0.257827560134168   0.0154829380891694  0.00148579427666974 2.04570391511689</p>
  <p>3 hour max amplitude    0.0147399465957507  1.67502696999681    2.19181284530584    0.483311544566242   0.0290639450953993  0.00282780199111172 3.9685599858469</p>
  <p>Average period (s)  8.91336838481586    8.65498715689717    9.52772136660616    9.57734175597055    9.39187976508895    7.71189985362629    5.81535607422081</p>
  <p>and i want my dataframe to be:</p>
  <p>Position of point(-61.871,29.65,25.77): Surge(m)  Sway(m) Heave(m) Roll(deg)</p>
  <pre><code> Significant amplitude               0.007    0.887   1.16     0.257
   3 hour max amplitude                0.014    1.675   2.1918   0.483
    Average period (s)                 8.9133   8.654   9.527    9.577
  </code></pre>
  <p>how can i do that in python?</p>