title: How to strip white spaces in headers with Python and pandas
body: <p>I am trying to load a tab deliminated file into pandas with python so I can perform different queries. Unfortunately the file formatting is nto great (it loads fine to Excel but I need to work with it programatically.</p>
  
  <p>When I do:</p>
  
  <pre><code>&gt;&gt;&gt; print(df.columns)
  
  Index([u'Domain Name                                                      ',
         u'Current Bid ', u'Join By Date (ET)', u'Join By Date (PT)',
         u'Bidders ', u'Seller         ', u'TLD     ', u'Length',
         u'Words                                                                           ',
         u'Word Count',
         u'Categories                                                                                                      ',
         u'Hyphens ', u'Numbers ', u'Auction Type'],
        dtype='object')
  </code></pre>
  
  <p>How can I fix the file so simple <code>df.query('TLD) == "value"')</code> would work?</p>
  
  <p>I get a new file every 5 days so I need to do it programatically.</p>
  
  <p>Note - please have patience, I am new to scripting and Python</p>