Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pandas optional in workday calendar example (#30660)
The workday calendar expected pandas to be available and it is part of our examples, however Airflow does not have pandas as a core dependency, so in case someone does not have pandas installed, importing of the workday example would fail. This change makes pandas optional and fallbacks to regular working days for the example in case it is not available (including warning about it). It also fixes a slight inefficiency where the USFederalHoliday calendar has been created every time next workday was calculated.
- Loading branch information