code: def _access_through_series(values, name):
      
      values_as_series = pd.Series(values.ravel())
      if name == "season":
          months = values_as_series.dt.month.values
          field_values = _season_from_months(months)
      else:
          field_values = getattr(values_as_series.dt, name).values
      return field_values.reshape(values.shape)
docs: Coerce an array of datetime-like values to a pandas Series and
      access requested datetime component