title: how to select row words as columns in Python
body: <p>I want to select words from the rows as columns and remove same words from row afterwards. </p>
  
  <p>I tried to see pandas functions like .pivot and things alike but didn't word.</p>
  
  <p>Here is my input </p>
  
  <pre class="lang-py prettyprint-override"><code>['Sampling frequency: 8000 Hz',
   'Number of channels: 2 (16-bit integer)',
   'File name: /home/niraj/Documents/audiofiles/M1F1-int16.wav',
   'Sampling frequency: 8000',
   'Sampling frequency: 16000 Hz',
   'Number of channels: 1 (16-bit integer)',
   'File name: /home/niraj/Documents/jg00b1ss.wav',
   'Sampling frequency: 16000',
   'sample_rate: 16000',
   'Sampling frequency: 8000 Hz',
   'Number of channels: 2 (16-bit integer)',
   'File name: /home/niraj/Documents/M1F1-int16.wav',
   'Sampling frequency: 8000']
  </code></pre>
  
  <p>The expected output I am looking for is this </p>
  
  <pre><code>    File name                sample_rate   Sampling frequency    Number of channels                                        
  0  /home/niraj/Documents...  16000           8000Hz               2(16-bit integer)
  </code></pre>
  
  <p>where the information is not found it can be either blank or N/A</p>