def METHOD_NAME(
    time: pd.DatetimeIndex, axis: int | Sequence[int]
) -> pd.DatetimeIndex:
    """New DatetimeIndex after aggregating over time axis"""
    if axis == 0 or (isinstance(axis, Sequence) and 0 in axis):
        time = pd.DatetimeIndex([time[0]])
    return time