title: int() vs .astype('int') Python
body: <p>I'm not sure when to use <code>int()</code> and when to use <code>.astype('int')</code>. Can anyone explain?</p>
  
  <p>Is it just <code>int()</code> is used for single values and <code>.astype('int')</code> is used for vectors? I'm coming from an R background so I'm used to using <code>as.integer</code></p>