title: Pandas append() row concrete example
body: <p>My question is how to cleanly append a row to a DataFrame by using DataFrame's append() method?</p>
  
  <p>According to the <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.append.html" rel="nofollow noreferrer">docs</a>, append() takes as a parameter a <em>"DataFrame or Series/dict-like object, or list of these".</em> Given the description, I thought something like this should be possible, but I can't find the right syntax:</p>
  
  <pre><code>df = pd.DataFrame(columns=('x', 'y', 'label'))
  df.append([2, 4, 1]) # Does not work
  </code></pre>
  
  <p>I'm able to append a row with <code>df.loc[len(df)] = [4, 4, 1]</code> but this isn't very clean.</p>