title: How do I retrieve the number of columns in a Pandas data frame?
body: <p>How do you programmatically retrieve the number of columns in a pandas dataframe? I was hoping for something like:</p>
  
  <pre><code>df.num_columns
  </code></pre>