title: Selecting a column to make histogram
body: <ol>
  <li><p>I have a data set that has 28 columns. I need to select one column (Age) and make a histogram with it.</p></li>
  <li><p>My problem is that how to select only the age column. </p></li>
  </ol>
  
  <p>I tried multiple ways. But it always selects all the 28 columns and draws the histogram. How i only select one column? any help will be great.</p>
  
  <p>Also can you please explain how to use data.loc method to select a column?</p>
  
  <p>I used it as:</p>
  
  <pre><code>df.loc[df['OS_STATUS'] == "LIVING", " 
  AGE"].value_counts().sort_index().plot(kind ='bar')
  </code></pre>
  
  <p>but I don't know how to make it work. any advice will be good.</p>
  
  <p>This is what i have so far:</p>
  
  <pre><code>cereal = pd.read_excel( 'C:\\Users\\f- 
  PC\\Desktop\\class\\CS\\hw1\\Book2.xlsx')
  cereal.plot(kind = 'bar')
  plt.ylabel('frequency')
  plt.xlabel('age')
  plt.title('histogram')
  plt.show()
  </code></pre>