Python / Pandas / Numpy - Direct calculation of number of business days between two dates excluding holidays

后端 未结 2 2162
我寻月下人不归
我寻月下人不归 2021-02-14 21:30

Is there a better / more direct way to calculate this than the following?

# 1. Set up the start and end date for which you         


        
2条回答
  •  说谎
    说谎 (楼主)
    2021-02-14 21:58

    The businesstime library looks very similar, which does not necessitate pandas dataframes.

    (From here: Is there a function in Python/Pandas to get business time Delta between two date times?)

提交回复
热议问题