def get_date_field ( datetimes , field ) : return np . array ( [ getattr ( date , field ) for date in datetimes ] )
return a column from a datatable python
Adapted from pandas . tslib . get_date_field
def get_date_field(datetimes, field):
    """Adapted from pandas.tslib.get_date_field"""
    return np.array([getattr(date, field) for date in datetimes])