title: How do i add column header, in the second row in a pandas dataframe?
body: <p>I have a data frame frame from pandas and now I want to add columns names, but only for the second row. Here is an example of my previous output:</p>
  
  <p><a href="https://i.stack.imgur.com/FBNoj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FBNoj.png" alt="enter image description here"></a></p>
  
  <p>Desired output:</p>
  
  <p><a href="https://i.stack.imgur.com/CfFxL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CfFxL.png" alt="enter image description here"></a></p>
  
  <p>My code:</p>
  
  <pre><code>data_line=open("file1.txt", mode="r")
  
  lines=[]
  for line in data_line:
      lines.append(line)
  for i, line in enumerate(lines):
      # print('{}={}'.format(i+1, line.strip()))
      file1_header=lines[0] 
  num_line=1
  Dictionary_File1={}
  Value_File1= data_type[0:6]
  Value_File1_short=[]
  i=1
  for element in Value_File1:
      type=element.split(',')
      Value_File1_short.append(type[0] + ", " + type[1] + ", " + type[4])
      i += 1
  Dictionary_File1[ file1_header]=Value_File1_short
  pd_file1=pd.DataFrame.from_dict(Dictionary_File1)
  </code></pre>