pandas-market-calendars 4.3.1__py3-none-any.whl → 4.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pandas_market_calendars/__init__.py +38 -37
- pandas_market_calendars/calendar_registry.py +53 -48
- pandas_market_calendars/calendar_utils.py +261 -225
- pandas_market_calendars/calendars/asx.py +66 -63
- pandas_market_calendars/calendars/bmf.py +206 -227
- pandas_market_calendars/calendars/bse.py +407 -409
- pandas_market_calendars/calendars/cboe.py +145 -115
- pandas_market_calendars/calendars/cme.py +402 -240
- pandas_market_calendars/calendars/cme_globex_agriculture.py +126 -103
- pandas_market_calendars/calendars/cme_globex_base.py +119 -103
- pandas_market_calendars/calendars/cme_globex_crypto.py +160 -147
- pandas_market_calendars/calendars/cme_globex_energy_and_metals.py +216 -138
- pandas_market_calendars/calendars/cme_globex_equities.py +123 -104
- pandas_market_calendars/calendars/cme_globex_fixed_income.py +136 -113
- pandas_market_calendars/calendars/cme_globex_fx.py +101 -78
- pandas_market_calendars/calendars/eurex.py +139 -119
- pandas_market_calendars/calendars/eurex_fixed_income.py +98 -0
- pandas_market_calendars/calendars/hkex.py +426 -408
- pandas_market_calendars/calendars/ice.py +81 -65
- pandas_market_calendars/calendars/iex.py +112 -98
- pandas_market_calendars/calendars/jpx.py +109 -103
- pandas_market_calendars/calendars/lse.py +114 -91
- pandas_market_calendars/calendars/mirror.py +130 -114
- pandas_market_calendars/calendars/nyse.py +1324 -1127
- pandas_market_calendars/calendars/ose.py +116 -150
- pandas_market_calendars/calendars/sifma.py +350 -297
- pandas_market_calendars/calendars/six.py +132 -114
- pandas_market_calendars/calendars/sse.py +311 -290
- pandas_market_calendars/calendars/tase.py +197 -195
- pandas_market_calendars/calendars/tsx.py +181 -159
- pandas_market_calendars/class_registry.py +22 -16
- pandas_market_calendars/holidays/cme.py +385 -340
- pandas_market_calendars/holidays/cme_globex.py +214 -198
- pandas_market_calendars/holidays/cn.py +1455 -1436
- pandas_market_calendars/holidays/jp.py +398 -396
- pandas_market_calendars/holidays/jpx_equinox.py +453 -95
- pandas_market_calendars/holidays/nyse.py +1531 -1472
- pandas_market_calendars/holidays/oz.py +63 -65
- pandas_market_calendars/holidays/sifma.py +338 -321
- pandas_market_calendars/holidays/uk.py +32 -26
- pandas_market_calendars/holidays/us.py +376 -360
- pandas_market_calendars/market_calendar.py +895 -789
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/METADATA +7 -5
- pandas_market_calendars-4.3.3.dist-info/RECORD +50 -0
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/WHEEL +1 -1
- pandas_market_calendars-4.3.1.dist-info/RECORD +0 -49
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/LICENSE +0 -0
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/NOTICE +0 -0
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/top_level.txt +0 -0
@@ -32,7 +32,7 @@ MayBank_pre_1995 = Holiday(
|
|
32
32
|
month=5,
|
33
33
|
offset=DateOffset(weekday=MO(1)),
|
34
34
|
day=1,
|
35
|
-
end_date=Timestamp(
|
35
|
+
end_date=Timestamp("1994-12-31"),
|
36
36
|
)
|
37
37
|
|
38
38
|
# Early May bank holiday post-1995 and pre-2020
|
@@ -41,8 +41,8 @@ MayBank_post_1995_pre_2020 = Holiday(
|
|
41
41
|
month=5,
|
42
42
|
offset=DateOffset(weekday=MO(1)),
|
43
43
|
day=1,
|
44
|
-
start_date=Timestamp(
|
45
|
-
end_date=Timestamp(
|
44
|
+
start_date=Timestamp("1996-01-01"),
|
45
|
+
end_date=Timestamp("2019-12-31"),
|
46
46
|
)
|
47
47
|
|
48
48
|
# Early May bank holiday post 2020
|
@@ -51,7 +51,7 @@ MayBank_post_2020 = Holiday(
|
|
51
51
|
month=5,
|
52
52
|
offset=DateOffset(weekday=MO(1)),
|
53
53
|
day=1,
|
54
|
-
start_date=Timestamp(
|
54
|
+
start_date=Timestamp("2021-01-01"),
|
55
55
|
)
|
56
56
|
|
57
57
|
# Spring bank holiday has two exceptions based on the Golden & Diamond Jubilee
|
@@ -65,7 +65,7 @@ SpringBank_pre_2002 = Holiday(
|
|
65
65
|
month=5,
|
66
66
|
day=31,
|
67
67
|
offset=DateOffset(weekday=MO(-1)),
|
68
|
-
end_date=Timestamp(
|
68
|
+
end_date=Timestamp("2001-12-31"),
|
69
69
|
)
|
70
70
|
|
71
71
|
SpringBank_post_2002_pre_2012 = Holiday(
|
@@ -73,8 +73,8 @@ SpringBank_post_2002_pre_2012 = Holiday(
|
|
73
73
|
month=5,
|
74
74
|
day=31,
|
75
75
|
offset=DateOffset(weekday=MO(-1)),
|
76
|
-
start_date=Timestamp(
|
77
|
-
end_date=Timestamp(
|
76
|
+
start_date=Timestamp("2003-01-01"),
|
77
|
+
end_date=Timestamp("2011-12-31"),
|
78
78
|
)
|
79
79
|
|
80
80
|
SpringBank_post_2012_pre_2022 = Holiday(
|
@@ -82,8 +82,8 @@ SpringBank_post_2012_pre_2022 = Holiday(
|
|
82
82
|
month=5,
|
83
83
|
day=31,
|
84
84
|
offset=DateOffset(weekday=MO(-1)),
|
85
|
-
start_date=Timestamp(
|
86
|
-
end_date=Timestamp(
|
85
|
+
start_date=Timestamp("2013-01-01"),
|
86
|
+
end_date=Timestamp("2021-12-31"),
|
87
87
|
)
|
88
88
|
|
89
89
|
SpringBank_post_2022 = Holiday(
|
@@ -91,7 +91,7 @@ SpringBank_post_2022 = Holiday(
|
|
91
91
|
month=5,
|
92
92
|
day=31,
|
93
93
|
offset=DateOffset(weekday=MO(-1)),
|
94
|
-
start_date=Timestamp(
|
94
|
+
start_date=Timestamp("2022-01-01"),
|
95
95
|
)
|
96
96
|
|
97
97
|
# Summer bank holiday
|
@@ -104,7 +104,7 @@ SummerBank = Holiday(
|
|
104
104
|
|
105
105
|
# Christmas Eve
|
106
106
|
ChristmasEve = Holiday(
|
107
|
-
|
107
|
+
"Christmas Eve",
|
108
108
|
month=12,
|
109
109
|
day=24,
|
110
110
|
observance=previous_friday,
|
@@ -146,35 +146,41 @@ WeekendBoxingDay = Holiday(
|
|
146
146
|
|
147
147
|
UniqueCloses = []
|
148
148
|
# VE-Day Anniversary
|
149
|
-
UniqueCloses.append(pd.Timestamp("1995-05-08", tz=
|
150
|
-
UniqueCloses.append(pd.Timestamp("2020-05-08", tz=
|
149
|
+
UniqueCloses.append(pd.Timestamp("1995-05-08", tz="UTC")) # 50th Anniversary
|
150
|
+
UniqueCloses.append(pd.Timestamp("2020-05-08", tz="UTC")) # 75th Anniversary
|
151
151
|
|
152
152
|
# Queen Elizabeth II Jubilees
|
153
153
|
# Silver Jubilee
|
154
|
-
UniqueCloses.append(pd.Timestamp("1977-06-07", tz=
|
154
|
+
UniqueCloses.append(pd.Timestamp("1977-06-07", tz="UTC"))
|
155
155
|
|
156
156
|
# Golden Jubilee
|
157
|
-
UniqueCloses.append(pd.Timestamp("2002-06-03", tz=
|
158
|
-
UniqueCloses.append(pd.Timestamp("2002-06-04", tz=
|
157
|
+
UniqueCloses.append(pd.Timestamp("2002-06-03", tz="UTC"))
|
158
|
+
UniqueCloses.append(pd.Timestamp("2002-06-04", tz="UTC"))
|
159
159
|
|
160
160
|
# Diamond Jubilee
|
161
|
-
UniqueCloses.append(pd.Timestamp("2012-06-04", tz=
|
162
|
-
UniqueCloses.append(pd.Timestamp("2012-06-05", tz=
|
161
|
+
UniqueCloses.append(pd.Timestamp("2012-06-04", tz="UTC"))
|
162
|
+
UniqueCloses.append(pd.Timestamp("2012-06-05", tz="UTC"))
|
163
163
|
|
164
164
|
# Platinum Jubilee
|
165
|
-
UniqueCloses.append(pd.Timestamp("2022-06-02", tz=
|
166
|
-
UniqueCloses.append(pd.Timestamp("2022-06-03", tz=
|
165
|
+
UniqueCloses.append(pd.Timestamp("2022-06-02", tz="UTC"))
|
166
|
+
UniqueCloses.append(pd.Timestamp("2022-06-03", tz="UTC"))
|
167
167
|
|
168
168
|
# State Funeral of Queen Elizabeth II
|
169
|
-
UniqueCloses.append(pd.Timestamp("2022-09-19", tz=
|
169
|
+
UniqueCloses.append(pd.Timestamp("2022-09-19", tz="UTC"))
|
170
170
|
|
171
171
|
# Royal Weddings
|
172
|
-
UniqueCloses.append(
|
173
|
-
|
174
|
-
|
172
|
+
UniqueCloses.append(
|
173
|
+
pd.Timestamp("1973-11-14", tz="UTC")
|
174
|
+
) # Wedding Day of Princess Anne and Mark Phillips
|
175
|
+
UniqueCloses.append(
|
176
|
+
pd.Timestamp("1981-07-29", tz="UTC")
|
177
|
+
) # Wedding Day of Prince Charles and Diana Spencer
|
178
|
+
UniqueCloses.append(
|
179
|
+
pd.Timestamp("2011-04-29", tz="UTC")
|
180
|
+
) # Wedding Day of Prince William and Catherine Middleton
|
175
181
|
|
176
182
|
# Coronation of King Charles III
|
177
|
-
UniqueCloses.append(pd.Timestamp("2023-05-08", tz=
|
183
|
+
UniqueCloses.append(pd.Timestamp("2023-05-08", tz="UTC"))
|
178
184
|
|
179
185
|
# Miscellaneous
|
180
|
-
UniqueCloses.append(pd.Timestamp("1999-12-31", tz=
|
186
|
+
UniqueCloses.append(pd.Timestamp("1999-12-31", tz="UTC")) # Eve of 3rd Millenium A.D.
|