-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdates.py
41 lines (30 loc) · 839 Bytes
/
dates.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import datetime
from pyspark.sql import DataFrame
def is_belgian_holiday(date: datetime.date) -> bool:
pass
def label_weekend(
frame: DataFrame, colname: str = "date", new_colname: str = "is_weekend"
) -> DataFrame:
pass
def label_holidays(
frame: DataFrame,
colname: str = "date",
new_colname: str = "is_belgian_holiday",
) -> DataFrame:
"""Add a column indicating whether or not the column `colname`
is a holiday."""
pass
def label_holidays2(
frame: DataFrame,
colname: str = "date",
new_colname: str = "is_belgian_holiday",
) -> DataFrame:
pass
def label_holidays3(
frame: DataFrame,
colname: str = "date",
new_colname: str = "is_belgian_holiday",
) -> DataFrame:
"""Add a column indicating whether or not the column `colname`
is a holiday."""
pass