title: TypeError: 'method' object is not subscriptable for pandas dataframe
body: <p>This program shows error in order to get rollingmean output.</p>
  <pre><code>    dff = pd.Series([ 0.001215,0.001571,0.002944, 0.005101, 0.007357, 0.009988, 0.013653, 0.017936, 0.021971, 0.025590 ])
      dff = pd.DataFrame(dff, columns=['A'])
      avg = dff['A'].rolling(3).mean()
      avg = [x*5 for x in avg] 
      dff['mean'] = avg
      
      listpos = 0 #We use a counter to move over the different data columns
      
      for datapoint in dff.A:
          rollingmean = dff.mean[listpos] 
  </code></pre>
  <p>After simulation it gives the error message given below:</p>
  <pre><code>TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-114-61e9145fea85&gt; in &lt;module&gt;()
       13 for datapoint in dff.A:
  ---&gt; 14     rollingmean = dff.mean[listpos] #Get local mean
  
  TypeError: 'method' object is not subscriptable
  </code></pre>
  <p>What's wrong in this code?</p>