Is there a way to override busday_count method in numpy?

Viewed 35

I want to override np.busday_count to include custom off days. How do I do it?

1 Answers

Just use the holidays parameter of np.busday_count:

np.busday_count('2021-01', '2021-02', holidays=['2021-01-05'])
Related