title: Count positive values in column pandas
body: <p>I have a table  with multiple columns of numbers. I'm trying to get stats for this table and I'm stuck trying to count the amount of positive increases between rows in a single column.</p>
  
  <p>what I have</p>
  
  <pre><code>A  |  B  |  C
  --------------
  1  |  5  |  2
  5  |  2  |  7
  2  |  2  |  10
  18 |  0  |  14
  </code></pre>
  
  <p>function I'm trying to write for my problem</p>
  
  <pre><code>def countIncreace(data,value):  #not complete but what I have so far
    print( data[value].pct_change().fillna(0).count( &gt; 0) )  
  </code></pre>
  
  <p><code>pct_change()</code> returns a table of the percentage of the number at that index compared to the number in row before it and <code>fillna(0)</code> replaces the <code>NaN</code> in position 0 of the chart that <code>pct_change()</code> creates with 0</p>
  
  <p>my desired output:</p>
  
  <pre><code>[IN]&gt;countIncreace(df, 'A'):
  [OUT]&gt; 2
  [IN]&gt;countIncreace(df, 'B'):
  [OUT]&gt; 0
  [IN]&gt;countIncreace(df, 'C'):
  [OUT]&gt; 3
  </code></pre>
  
  <p>What am I missing to in my function to get the count of positive values</p>