title: Why isn't read_fwf() output correct content of files?
body: <p>This is the file content (named sample.txt)</p>
  
  <pre><code>gvkeyx        from        thru    conm                gvkey     co_conm                      co_tic
  123453    19661214    19890426    S&amp;P 500 Comp-Ltd    010490    TEXAS EASTERN CORP           PEL4    
  123453    19670101           .    S&amp;P 500 Comp-Ltd    001078    ABBOTT LABORATORIES          ABT     
  123453    19670101           .    S&amp;P 500 Comp-Ltd    001300    HONEYWELL INTERNATIONAL INC  HON     
  123453    19670101           .    S&amp;P 500 Comp-Ltd    001356    ALCOA INC                    AA      
  123453    19670101           .    S&amp;P 500 Comp-Ltd    001408    FORTUNE BRANDS INC           FO 
  </code></pre>
  
  <p>The code I entered to read it:</p>
  
  <pre><code>In [16]: colspecs = [(0, 9), (10, 21), (22, 33), (34, 53), (54, 63), (64, 92), (93, 99)]
  
  In [17]: df = read_fwf('sample.txt', colspecs = colspecs, header=None, index_col=None)
  
  In [18]: df[:2]
  
  Out[19]:      
  &lt;class 'pandas.core.frame.DataFrame'&gt;
  Int64Index: 2 entries, 0 to 1
  Data Columns:
  X.1    2    non-null values
  X.2    2    non-null values
  X.3    2    non-null values
  X.4    2    non-null values
  X.5    2    non-null values
  X.6    2    non-null values
  X.7    2    non-null values
  dtypes: object(7)
  </code></pre>
  
  <p>I am having trouble to understand this output as its entirely different from file. Any comments and advice would help. Thanks</p>