title: How to add new line to existing pandas dataframe?
body: <p>I have a pandas dataframe that has been defined as empty and then I would like to add some rows to it after doing some calculations.</p>
  
  <p>I have tried to do the following:</p>
  
  <pre><code>test = pd.DataFrame(columns=['Name', 'Age', 'Gender'])
  
  if #some statement:
  
  test.append(['James', '95', 'M'])
  
  </code></pre>
  
  <p>If I try to print and then append to test shows</p>
  
  <pre><code>print(test)
  
  test.append(['a', 'a', 'a', 'a', 'a', 'a'])
  
  print(test)
  
  &gt;&gt;&gt;
  
  Empty DataFrame
  Columns: [Name, Age, Gender]
  Index: []
  Empty DataFrame
  Columns: [Name, Age, Gender]
  Index: []
  
  </code></pre>
  
  <p>So clearly the line is not being added to the dataframe.</p>
  
  <p>I want the output to be</p>
  
  <pre><code>Name | Age | Gender
  James | 95 | M
  </code></pre>