I analyze the running of devices hour per hour that work 24 hours a day (but not all the year), but I have error with:
from pandas.tseries.offsets import CustomBusinessHour
Use=CustomBusinessHour(
start='00:00',
end='24:00',
weekmask=(1,1,1,1,1,1,0)
)
or
Use=CustomBusinessHour(
start='00:00',
end='00:00',
weekmask=(1,1,1,1,1,1,0)
)
(or end='23:59'
does strange things, it shifts a minute every day)
(or end='23:00'
is not suitable, it stops at 22:00 instead 23:00)
Do you know if it's possible to create CustomBusinessHour that works the whole day ?
My goal is to generate a Series of hours worked in a year:
pd.date_range(dt.date(2020,1,1), dt.date(2021,1,1), closed='left', freq=Use)
Thx a lot in advance.