calendar: Calendar data in M5 Competition

Description Usage Format Source References Examples

Description

The data contains information about the dates the products are sold.

Usage

1

Format

Calendar data contains information about the dates the products are sold. calendar is a dataframe with the following structure:

date

The date in a “y-m-d” format.

wm_yr_wk

The id of the week the date belongs to.

weekday

The type of the day (Saturday, Sunday, ..., Friday).

wday

The id of the weekday, starting from Saturday.

month

The month of the date.

year

The year of the date.

event_name_1

If the date includes an event, the name of this event.

event_type_1

If the date includes an event, the type of this event.

event_name_2

If the date includes a second event, the name of this event.

event_type_2

If the date includes a second event, the type of this event.

snap_CA

A binary variable (0 or 1) indicating whether the stores of CA allow SNAP purchases on the examined date. 1 indicates that SNAP purchases are allowed.

snap_TX

A binary variable (0 or 1) indicating whether the stores of TX allow SNAP purchases on the examined date. 1 indicates that SNAP purchases are allowed.

snap_WI

A binary variable (0 or 1) indicating whether the stores of WI allow SNAP purchases on the examined date. 1 indicates that SNAP purchases are allowed.

Source

M5 Competition Dataset

References

M5 Competition Web

M5 Competitors’ Guide

Examples

1
2
3

xqnwang/M5comp documentation built on April 2, 2020, 9:45 p.m.