title: how to calculate a moving average in a dataframe?
body: <p>I have a dataframe column that looks like this:</p>
  <pre><code>CurrentCreditLines
  0   5.0
  1   14.0
  2   NaN
  3   5.0
  4   19.0
  </code></pre>
  <p>with 110k records, how can I calculate the moving average? also I need it to be rounded and with type float, I tried this:</p>
  <pre><code>test[&quot;CurrentCreditLines&quot;].rolling(min_periods=1, center=True, window=12).mean().round().float()
  </code></pre>
  <p>but I got the error:</p>
  <pre><code>'Series' object has no attribute 'float'
  </code></pre>