We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bd0c6c commit 35fd6deCopy full SHA for 35fd6de
engineering.rst
@@ -32,6 +32,13 @@ Here's a script to pull those values out.
32
df['dayofweek'] = df['timestamp'].dt.dayofweek
33
return df
34
35
+To get holidays, use the package ``holidays``
36
+
37
+.. code:: python
38
39
+ import holidays
40
+ train['holiday'] = train['timestamp'].apply(lambda x: 0 if holidays.US().get(x) is None else 1)
41
42
Time-Series
43
^^^^^^^^^^^^^^
44
Decomposing a time-series into trend (long-term), seaonality (short-term), residuals (noise).
0 commit comments