Skip to main content
Date features are an essential part of time series analysis. This document introduces helpful classes (CountryHolidays and SpecialDates) for generating holiday flags, custom date markers, and adding them to TimeGPT.

Overview

CountryHolidays

Easily attach holiday flags for multiple countries based on a list of countries.

SpecialDates

Add flags for custom events or significant dates you define.
These classes help you enrich your time series datasets with relevant date-based signals. Use them alongside standard data preprocessing techniques to enhance your model’s understanding of seasonality and special events. source

CountryHolidays

Given a list of countries, returns a dataframe with holidays for each country.

source

SpecialDates

Given a dictionary of categories and dates, returns a dataframe with the special dates.