pandas-market-calendars 4.1.3__py3-none-any.whl → 4.2.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/METADATA +200 -187
- pandas_market_calendars-4.2.0.dist-info/NOTICE +206 -0
- pandas_market_calendars-4.2.0.dist-info/RECORD +6 -0
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/WHEEL +1 -1
- pandas_market_calendars/__init__.py +0 -37
- pandas_market_calendars/calendar_registry.py +0 -47
- pandas_market_calendars/calendar_utils.py +0 -225
- pandas_market_calendars/class_registry.py +0 -111
- pandas_market_calendars/exchange_calendar_asx.py +0 -63
- pandas_market_calendars/exchange_calendar_bmf.py +0 -227
- pandas_market_calendars/exchange_calendar_bse.py +0 -409
- pandas_market_calendars/exchange_calendar_cboe.py +0 -115
- pandas_market_calendars/exchange_calendar_cme.py +0 -240
- pandas_market_calendars/exchange_calendar_cme_globex_agriculture.py +0 -109
- pandas_market_calendars/exchange_calendar_cme_globex_base.py +0 -106
- pandas_market_calendars/exchange_calendar_cme_globex_energy_and_metals.py +0 -146
- pandas_market_calendars/exchange_calendar_cme_globex_equities.py +0 -104
- pandas_market_calendars/exchange_calendar_cme_globex_fixed_income.py +0 -114
- pandas_market_calendars/exchange_calendar_cme_globex_fx.py +0 -78
- pandas_market_calendars/exchange_calendar_eurex.py +0 -119
- pandas_market_calendars/exchange_calendar_hkex.py +0 -408
- pandas_market_calendars/exchange_calendar_ice.py +0 -65
- pandas_market_calendars/exchange_calendar_iex.py +0 -98
- pandas_market_calendars/exchange_calendar_jpx.py +0 -98
- pandas_market_calendars/exchange_calendar_lse.py +0 -91
- pandas_market_calendars/exchange_calendar_nyse.py +0 -1127
- pandas_market_calendars/exchange_calendar_ose.py +0 -150
- pandas_market_calendars/exchange_calendar_sifma.py +0 -300
- pandas_market_calendars/exchange_calendar_six.py +0 -114
- pandas_market_calendars/exchange_calendar_sse.py +0 -290
- pandas_market_calendars/exchange_calendar_tase.py +0 -119
- pandas_market_calendars/exchange_calendar_tsx.py +0 -159
- pandas_market_calendars/exchange_calendars_mirror.py +0 -114
- pandas_market_calendars/holidays_cme.py +0 -341
- pandas_market_calendars/holidays_cme_globex.py +0 -169
- pandas_market_calendars/holidays_cn.py +0 -1436
- pandas_market_calendars/holidays_jp.py +0 -362
- pandas_market_calendars/holidays_nyse.py +0 -1474
- pandas_market_calendars/holidays_oz.py +0 -65
- pandas_market_calendars/holidays_sifma.py +0 -321
- pandas_market_calendars/holidays_uk.py +0 -177
- pandas_market_calendars/holidays_us.py +0 -364
- pandas_market_calendars/jpx_equinox.py +0 -147
- pandas_market_calendars/market_calendar.py +0 -770
- pandas_market_calendars-4.1.3.dist-info/RECORD +0 -45
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/LICENSE +0 -0
- {pandas_market_calendars-4.1.3.dist-info → pandas_market_calendars-4.2.0.dist-info}/top_level.txt +0 -0
@@ -1,362 +0,0 @@
|
|
1
|
-
from dateutil.relativedelta import MO
|
2
|
-
from pandas import DateOffset, Timestamp
|
3
|
-
from pandas.tseries.holiday import Holiday, sunday_to_monday
|
4
|
-
|
5
|
-
from pandas_market_calendars.jpx_equinox import autumnal_citizen_dates, autumnal_equinox, vernal_equinox
|
6
|
-
|
7
|
-
AscensionDays = [
|
8
|
-
Timestamp('2019-04-30', tz='UTC'), # National Holiday
|
9
|
-
Timestamp('2019-05-01', tz='UTC'), # Ascension Day
|
10
|
-
Timestamp('2019-05-02', tz='UTC'), # National Holiday
|
11
|
-
]
|
12
|
-
|
13
|
-
MarriageDays = [
|
14
|
-
Timestamp('1959-04-10', tz='UTC'), # Akihito
|
15
|
-
Timestamp('1993-06-09', tz='UTC'), # Naruhito
|
16
|
-
]
|
17
|
-
|
18
|
-
FuneralShowa = [
|
19
|
-
Timestamp('1989-02-24', tz='UTC'),
|
20
|
-
]
|
21
|
-
|
22
|
-
EnthronementDays = [
|
23
|
-
Timestamp('1990-11-12', tz='UTC'), # Akihito
|
24
|
-
Timestamp('2019-10-22', tz='UTC') # Naruhito
|
25
|
-
]
|
26
|
-
|
27
|
-
AutumnalCitizenDates = autumnal_citizen_dates()
|
28
|
-
|
29
|
-
NoN225IndexPrices = [
|
30
|
-
# source: https://indexes.nikkei.co.jp/en/nkave/archives/data
|
31
|
-
# TODO: determine if these dates were also national holidays
|
32
|
-
Timestamp('1951-02-15', tz='UTC'),
|
33
|
-
Timestamp('1953-02-09', tz='UTC'),
|
34
|
-
Timestamp('1954-10-26', tz='UTC'),
|
35
|
-
Timestamp('1959-04-10', tz='UTC'),
|
36
|
-
]
|
37
|
-
|
38
|
-
JapanNewYearsDay2 = Holiday(
|
39
|
-
name="New Year's Day",
|
40
|
-
month=1,
|
41
|
-
day=2,
|
42
|
-
observance=sunday_to_monday,
|
43
|
-
)
|
44
|
-
|
45
|
-
JapanNewYearsDay3 = Holiday(
|
46
|
-
name="New Year's Day",
|
47
|
-
month=1,
|
48
|
-
day=3,
|
49
|
-
)
|
50
|
-
|
51
|
-
JapanComingOfAgeDay1951To1973 = Holiday(
|
52
|
-
name="Coming of Age Day",
|
53
|
-
month=1,
|
54
|
-
day=15,
|
55
|
-
start_date=Timestamp(1951, 1, 1),
|
56
|
-
end_date=Timestamp(1973, 12, 31)
|
57
|
-
)
|
58
|
-
|
59
|
-
JapanComingOfAgeDay1974To1999 = Holiday(
|
60
|
-
name="Coming of Age Day",
|
61
|
-
month=1,
|
62
|
-
day=15,
|
63
|
-
start_date=Timestamp(1974, 1, 1),
|
64
|
-
end_date=Timestamp(1999, 12, 31),
|
65
|
-
observance=sunday_to_monday,
|
66
|
-
)
|
67
|
-
|
68
|
-
JapanComingOfAgeDay = Holiday( # second monday of january
|
69
|
-
name="Coming of Age Day",
|
70
|
-
month=1,
|
71
|
-
day=1,
|
72
|
-
start_date=Timestamp(2000, 1, 1),
|
73
|
-
offset=DateOffset(weekday=MO(2)),
|
74
|
-
)
|
75
|
-
|
76
|
-
JapanNationalFoundationDay1969To1973 = Holiday(
|
77
|
-
name="National Foundation Day",
|
78
|
-
month=2,
|
79
|
-
day=11,
|
80
|
-
start_date=Timestamp(1969, 1, 1), # also held 1872 to 1948 as Kigen-setsu
|
81
|
-
end_date=Timestamp(1973, 12, 31),
|
82
|
-
)
|
83
|
-
|
84
|
-
JapanNationalFoundationDay = Holiday(
|
85
|
-
name="National Foundation Day",
|
86
|
-
month=2,
|
87
|
-
day=11,
|
88
|
-
start_date=Timestamp(1974, 1, 1),
|
89
|
-
observance=sunday_to_monday,
|
90
|
-
)
|
91
|
-
|
92
|
-
JapanEmperorsBirthday = Holiday(
|
93
|
-
name="The Emperor's Birthday",
|
94
|
-
month=2,
|
95
|
-
day=23,
|
96
|
-
start_date=Timestamp(2020, 1, 1),
|
97
|
-
observance=sunday_to_monday,
|
98
|
-
)
|
99
|
-
|
100
|
-
JapanVernalEquinox = Holiday(
|
101
|
-
name="Vernal Equinox",
|
102
|
-
month=3,
|
103
|
-
day=20,
|
104
|
-
observance=vernal_equinox
|
105
|
-
)
|
106
|
-
|
107
|
-
JapanShowaDayUntil1972 = Holiday(
|
108
|
-
name="Showa Day",
|
109
|
-
month=4,
|
110
|
-
day=29,
|
111
|
-
end_date=Timestamp(1972, 12, 31) # 1965
|
112
|
-
)
|
113
|
-
|
114
|
-
JapanShowaDay = Holiday(
|
115
|
-
name="Showa Day",
|
116
|
-
month=4,
|
117
|
-
day=29,
|
118
|
-
start_date=Timestamp(1973, 1, 1),
|
119
|
-
observance=sunday_to_monday,
|
120
|
-
)
|
121
|
-
|
122
|
-
JapanConstitutionMemorialDayUntil1972 = Holiday(
|
123
|
-
name="Constitution Memorial Day",
|
124
|
-
month=5,
|
125
|
-
day=3,
|
126
|
-
start_date=Timestamp(1948, 1, 1),
|
127
|
-
end_date=Timestamp(1972, 12, 31),
|
128
|
-
)
|
129
|
-
|
130
|
-
JapanConstitutionMemorialDay = Holiday(
|
131
|
-
name="Constitution Memorial Day",
|
132
|
-
month=5,
|
133
|
-
day=3,
|
134
|
-
start_date=Timestamp(1973, 1, 1),
|
135
|
-
observance=sunday_to_monday,
|
136
|
-
)
|
137
|
-
|
138
|
-
JapanGreeneryDay = Holiday(
|
139
|
-
name="Greenery Day", # prior to 1985 was a Citizen's Day
|
140
|
-
month=5,
|
141
|
-
day=4,
|
142
|
-
start_date=Timestamp(1985, 1, 1),
|
143
|
-
observance=sunday_to_monday,
|
144
|
-
)
|
145
|
-
|
146
|
-
JapanChildrensDayUntil1972 = Holiday(
|
147
|
-
name="Children's Day",
|
148
|
-
month=5,
|
149
|
-
day=5,
|
150
|
-
start_date=Timestamp(1948, 1, 1),
|
151
|
-
end_date=Timestamp(1972, 12, 31),
|
152
|
-
)
|
153
|
-
|
154
|
-
JapanChildrensDay = Holiday(
|
155
|
-
name="Children's Day",
|
156
|
-
month=5,
|
157
|
-
day=5,
|
158
|
-
start_date=Timestamp(1973, 1, 1),
|
159
|
-
observance=sunday_to_monday,
|
160
|
-
)
|
161
|
-
|
162
|
-
# starting in 2007, there can be a holiday on May 6 if May 3 or 4 falls on a Sunday
|
163
|
-
JapanGoldenWeekBonusDay = Holiday(
|
164
|
-
name="Golden Week Bonus Day",
|
165
|
-
month=5,
|
166
|
-
day=6,
|
167
|
-
start_date=Timestamp(2007, 1, 1),
|
168
|
-
days_of_week=(1, 2),
|
169
|
-
)
|
170
|
-
|
171
|
-
JapanMarineDay1996To2002 = Holiday(
|
172
|
-
name="Marine Day",
|
173
|
-
month=7,
|
174
|
-
day=20,
|
175
|
-
start_date=Timestamp(1996, 1, 1),
|
176
|
-
end_date=Timestamp(2002, 12, 31),
|
177
|
-
observance=sunday_to_monday,
|
178
|
-
)
|
179
|
-
|
180
|
-
JapanMarineDay2003To2019 = Holiday(
|
181
|
-
name="Marine Day",
|
182
|
-
month=7,
|
183
|
-
day=1,
|
184
|
-
start_date=Timestamp(2003, 1, 1),
|
185
|
-
end_date=Timestamp(2019, 12, 31),
|
186
|
-
offset=DateOffset(weekday=MO(3)),
|
187
|
-
)
|
188
|
-
|
189
|
-
JapanMarineDay2020 = Holiday(
|
190
|
-
name="Marine Day", # shift for Olympics
|
191
|
-
year=2020,
|
192
|
-
month=7,
|
193
|
-
day=23,
|
194
|
-
)
|
195
|
-
|
196
|
-
JapanMarineDay = Holiday(
|
197
|
-
name="Marine Day",
|
198
|
-
month=7,
|
199
|
-
day=1,
|
200
|
-
start_date=Timestamp(2021, 1, 1),
|
201
|
-
offset=DateOffset(weekday=MO(3)),
|
202
|
-
)
|
203
|
-
|
204
|
-
JapanMountainDay2016to2019 = Holiday(
|
205
|
-
name="Mountain Day",
|
206
|
-
month=8,
|
207
|
-
day=11,
|
208
|
-
start_date=Timestamp(2016, 1, 1),
|
209
|
-
end_date=Timestamp(2019, 12, 31),
|
210
|
-
observance=sunday_to_monday,
|
211
|
-
)
|
212
|
-
|
213
|
-
JapanMountainDay2020 = Holiday(
|
214
|
-
name="Mountain Day", # shift for Olympics
|
215
|
-
year=2020,
|
216
|
-
month=8,
|
217
|
-
day=10,
|
218
|
-
)
|
219
|
-
|
220
|
-
JapanMountainDay = Holiday(
|
221
|
-
name="Mountain Day",
|
222
|
-
month=8,
|
223
|
-
day=11,
|
224
|
-
start_date=Timestamp(2021, 1, 1),
|
225
|
-
observance=sunday_to_monday,
|
226
|
-
)
|
227
|
-
|
228
|
-
JapanRespectForTheAgedDay1966To1972 = Holiday(
|
229
|
-
name="Respect for the Aged Day",
|
230
|
-
month=9,
|
231
|
-
day=15,
|
232
|
-
start_date=Timestamp(1966, 1, 1),
|
233
|
-
end_date=Timestamp(1972, 12, 31)
|
234
|
-
)
|
235
|
-
|
236
|
-
JapanRespectForTheAgedDay1973To2002 = Holiday(
|
237
|
-
name="Respect for the Aged Day",
|
238
|
-
month=9,
|
239
|
-
day=15,
|
240
|
-
start_date=Timestamp(1973, 1, 1),
|
241
|
-
end_date=Timestamp(2002, 12, 31),
|
242
|
-
observance=sunday_to_monday,
|
243
|
-
)
|
244
|
-
|
245
|
-
JapanRespectForTheAgedDay = Holiday(
|
246
|
-
name="Respect for the Aged Day",
|
247
|
-
month=9,
|
248
|
-
day=1,
|
249
|
-
start_date=Timestamp(2003, 1, 1),
|
250
|
-
offset=DateOffset(weekday=MO(3)),
|
251
|
-
)
|
252
|
-
|
253
|
-
# Citizen's Day added in some years between Respect for Aged and Autumnal Equinox
|
254
|
-
|
255
|
-
JapanAutumnalEquinox = Holiday(
|
256
|
-
name="Autumnal Equinox",
|
257
|
-
month=9,
|
258
|
-
day=22,
|
259
|
-
observance=autumnal_equinox,
|
260
|
-
)
|
261
|
-
|
262
|
-
JapanHealthAndSportsDay1966To1972 = Holiday(
|
263
|
-
name="Health and Sports Day",
|
264
|
-
month=10,
|
265
|
-
day=10,
|
266
|
-
start_date=Timestamp(1966, 1, 1),
|
267
|
-
end_date=Timestamp(1972, 12, 31),
|
268
|
-
)
|
269
|
-
|
270
|
-
JapanHealthAndSportsDay1973To1999 = Holiday(
|
271
|
-
name="Health and Sports Day",
|
272
|
-
month=10,
|
273
|
-
day=10,
|
274
|
-
start_date=Timestamp(1973, 1, 1),
|
275
|
-
end_date=Timestamp(1999, 12, 31),
|
276
|
-
observance=sunday_to_monday,
|
277
|
-
)
|
278
|
-
|
279
|
-
JapanHealthAndSportsDay2000To2019 = Holiday(
|
280
|
-
name="Health and Sports Day",
|
281
|
-
month=10,
|
282
|
-
day=1,
|
283
|
-
start_date=Timestamp(2000, 1, 1),
|
284
|
-
end_date=Timestamp(2019, 12, 31),
|
285
|
-
offset=DateOffset(weekday=MO(2)),
|
286
|
-
)
|
287
|
-
|
288
|
-
JapanSportsDay2020 = Holiday(
|
289
|
-
name="Sports Day", # shift for Olympics
|
290
|
-
year=2020,
|
291
|
-
month=7,
|
292
|
-
day=24,
|
293
|
-
)
|
294
|
-
|
295
|
-
JapanSportsDay = Holiday(
|
296
|
-
name="Sports Day",
|
297
|
-
month=10,
|
298
|
-
day=1,
|
299
|
-
start_date=Timestamp(2021, 1, 1),
|
300
|
-
offset=DateOffset(weekday=MO(2)),
|
301
|
-
)
|
302
|
-
|
303
|
-
JapanCultureDayUntil1972 = Holiday(
|
304
|
-
name="Culture Day", # prior to 1948 Emperor Meiji's Birthday
|
305
|
-
month=11,
|
306
|
-
day=3,
|
307
|
-
start_date=Timestamp(1948, 1, 1),
|
308
|
-
end_date=Timestamp(1972, 12, 31),
|
309
|
-
)
|
310
|
-
|
311
|
-
JapanCultureDay = Holiday(
|
312
|
-
name="Culture Day",
|
313
|
-
month=11,
|
314
|
-
day=3,
|
315
|
-
start_date=Timestamp(1973, 1, 1),
|
316
|
-
observance=sunday_to_monday,
|
317
|
-
)
|
318
|
-
|
319
|
-
JapanLaborThanksgivingDayUntil1972 = Holiday(
|
320
|
-
name="Labor Thanksgiving Day", # prior to 1948 harvest festival Niiname-sai
|
321
|
-
month=11,
|
322
|
-
day=23,
|
323
|
-
end_date=Timestamp(1972, 12, 31),
|
324
|
-
)
|
325
|
-
|
326
|
-
JapanLaborThanksgivingDay = Holiday(
|
327
|
-
name="Labor Thanksgiving Day",
|
328
|
-
month=11,
|
329
|
-
day=23,
|
330
|
-
start_date=Timestamp(1973, 1, 1),
|
331
|
-
observance=sunday_to_monday,
|
332
|
-
)
|
333
|
-
|
334
|
-
JapanEmperorAkahitosBirthday = Holiday(
|
335
|
-
name="Emperor Akahito's Birthday",
|
336
|
-
month=12,
|
337
|
-
day=23,
|
338
|
-
start_date=Timestamp(1990, 1, 1),
|
339
|
-
end_date=Timestamp(2018, 12, 31),
|
340
|
-
observance=sunday_to_monday,
|
341
|
-
)
|
342
|
-
|
343
|
-
JapanDecember29Until1988 = Holiday(
|
344
|
-
name="Closed Decenber 29",
|
345
|
-
month=12,
|
346
|
-
day=29,
|
347
|
-
end_date=Timestamp(1988, 12, 31),
|
348
|
-
)
|
349
|
-
|
350
|
-
JapanDecember30Until1988 = Holiday(
|
351
|
-
name="Closed December 30",
|
352
|
-
month=12,
|
353
|
-
day=30,
|
354
|
-
end_date=Timestamp(1988, 12, 31),
|
355
|
-
)
|
356
|
-
|
357
|
-
JapanBeforeNewYearsDay = Holiday(
|
358
|
-
name="Before New Year's Day", # prior to 1948 harvest festival Niname-sai
|
359
|
-
month=12,
|
360
|
-
day=31,
|
361
|
-
observance=sunday_to_monday,
|
362
|
-
)
|