title: Python Pandas Counting the Occurrences of a Specific value
body: <p>I am trying to find the number of times a certain value appears in one column.</p>
  
  <p>I have made the dataframe with <code>data = pd.DataFrame.from_csv('data/DataSet2.csv')</code></p>
  
  <p>and now I want to find the number of times something appears in a column. How is this done?</p>
  
  <p>I thought it was the below, where I am looking in the education column and counting the number of time <code>?</code> occurs.</p>
  
  <p>The code below shows that I am trying to find the number of times <code>9th</code> appears and the error is what I am getting when I run the code</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>missing2 = df.education.value_counts()['9th']
  print(missing2)
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <pre><code>KeyError: '9th'
  </code></pre>