Pandas: how to change all the values of a column?,df['Date'].str.extract('(?P<year>\\d{4})').astype(int)