Comments (2)
First thank you for liking the project.
The .holidays() method returns a pandas CustomBusinessDay() object with the combination of the regular and ad-hoc holidays. pandas doc here: http://pandas.pydata.org/pandas-docs/stable/timeseries.html#custom-business-days-experimental
If you want to get the regular scheduled holidays you can call .regular_holidays which returns a pandas AbstractHolidayCalendar object. A call to .regular_holidays.rules will return all of the rules that comprise the holiday calendar. Pandas doc here: http://pandas.pydata.org/pandas-docs/stable/timeseries.html#holidays-holiday-calendars
A call to .adhoc_holidays will return a list of the dates, but since the adhoc_holidays could just be an list of pandas TimeStamps the names used to create them is not preserved in the call.
from pandas_market_calendars.
thanks very much for the clear explanations, by looking at mycal.regular_holidays.holidays("20170101", "20171231", return_name=True) I get the days with their names which is what I wanted.
I am interested in future dates, as the AdHoc holidays are more about past days, in my case I am good ignoring them I think
from pandas_market_calendars.
Related Issues (20)
- ADD XJPX as an allias for JPX HOT 1
- 2023 XHKG typhoon closures
- date_range 1min ranges from 9:31am to 4pm instead of 9:30am to 3:59pm HOT 3
- 167 errors in tests HOT 1
- Good Friday is always a holiday for CBOE/CFE even when Christmas and NYE fall on a Friday
- not compatible with pandas >= 2.0.3 HOT 11
- Nasdaq Calendar HOT 1
- Eurex does not close on German National Day HOT 1
- XCSE - General Prayers Day is not a holiday anymore in Denmark HOT 1
- Please update the pandas version dependency HOT 4
- 2 tests fail: AssertionError: assert <DstTzInfo 'America/New_York' LMT-1 day, 19:04:00 STD> == zoneinfo.ZoneInfo(key='America/New_York') HOT 10
- open_at_time future warning
- Juneteenth not added to the listed holidays in cme.py HOT 5
- CME globex USNewYearDay incorrect when NY is on Sunday HOT 1
- minimal version requirement HOT 2
- XNSE and XBOM special holiday 2024-01-22 HOT 1
- CME_Equity valid_days wrong on holidays?
- XNSE and XBOM holiday 2024-05-20 HOT 2
- 24/7 Calendar is actually 24/5 HOT 1
- Aliases not picking up holidays HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas_market_calendars.