title: Selecting specific columns from df -h output in python
body: <p>I'm trying to create a simple script that will select specific columns from the unix <code>df - h</code> command. I can use awk to do this but how can we do this in python?</p>
  
  <p>Here is <code>df -h</code> output:</p>
  
  <pre>
  Filesystem                    Size  Used  Avail  Use%  Mounted on
  /dev/mapper/vg_base-lv_root   28G   4.8G    22G   19%  /
  tmpfs                        814M   176K   814M    1%  /dev/shm
  /dev/sda1                    485M   120M   340M   27%  /boot
  </pre>
  
  <p>I want something like:</p>
  
  <p>Column 1:</p>
  
  <pre>
  Filesystem
  /dev/mapper/vg_base-lv_root           
  tmpfs                 
  /dev/sda1
  </pre>
  
  <p>Column 2:</p>
  
  <pre>
  Size
  28G
  814M 
  485M   
  </pre>