I want get the count of busy days between this two pandas series("datetime64[ns]")
DT_DEADLINE DT_DELIVERY
0 2021-08-05 2021-08-05
1 2021-08-09 2021-08-16
2 2021-08-10 2021-08-15
3 2021-08-09 2021-08-15
4 2021-08-05 2021-08-10
I try do like that but get the erro bellow:
of['bdays'] = np.busday_count(of["DT_DEADLINE"].dt.date, of["DT_DELIVERY"].dt.date)
ERROR MESSAGE:
TypeError: Cannot cast array data from dtype('O') to dtype('<M8[D]') according to the rule 'safe'