something like
is_Business_day(date) returns true or false.
is_Business_day(date) returns true or false.
Use the date.weekday()
function to get the weekday that a date is on. Monday is 0 and Sunday is 6, so a business day would be mydate.weekday() < 5
I found this solution:
from bdateutil import isbday
isbday(date, holidays = holidays.US())