code: def to_monthly(series, method='ffill', how='end'):
      
      return series.asfreq_actual('M', method=method, how=how)
docs: Convenience method that wraps asfreq_actual
      with 'M' param (method='ffill', how='end').