title: Python Pandas - Append data to specific row and column
body: <p>after searching, I don't think this is a duplicate, but if it is please let me know.</p>
  
  <p>I currently have a data frame with a number of rows and variables. I would like to create a separate data frame of a single row which is the mean of each variable. I'm doing this so that I can easily plot it in a graph. I'm not sure why my syntax doesn't work. </p>
  
  <p>This is for one specific variable. If I can get this to work, then I can expand it to all the columns with a loop.</p>
  
  <pre><code>avg = pd.DataFrame(columns=original.columns.values)
  avg['max_yds'].loc[0] = original['max_yds'].mean(axis=0)
  </code></pre>
  
  <p>In my mind, the first line creates a data frame called 'avg' which is empty and has all the columns from original. This seems to work as expected. For the second line, I expect it to set the first row of the variable 'max_yds' in 'avg' and set it to the mean of the variable of 'max_yds' from original. Instead, I get: <code>Empty DataFrame</code></p>
  
  <p>Thanks!</p>