title: How to name pandas dataframe columns from a text file
body: <p>I have two text files, one is data and one is the headers.</p>
  
  <p>The data looks like this in dataframe:
  <a href="https://i.stack.imgur.com/w6Xya.png" rel="nofollow noreferrer">enter image description here</a>
  And the headers text file looks like this:</p>
  
  <pre><code>`[TramDateDimension]
  (
         [Date]
        ,[CalendarYear]
        ,[FinancialYear]
        ,[FinancialMonth]
        ,[CalendarMonth]
        ,[CalendarMonthSeq]
        ,[CalendarQuarter]
        ,[FinancialQuarter]
        ,[CalendarWeek]...)
  `
  </code></pre>
  
  <p>How can I name the columns using this text file?</p>