def time_series_year(time_series, year):
    """Extract a section of the time-series based on the year.

    :param time_series: time-series to be extracted
    :param year: year to be extracted

    :type time_series: pandas.DataFrame
    :type year: int
    """
    return time_series[time_series.index.year == year].values.transpose()[0]