I am using python pandas to calculate efficiency of the employees. I have a data frame describing employees of some company. Each employee have unique employee id. The data frame shows monthly record of the number of hours for all employees. So there might be some days missing from DF for each employee. So those dates range have to filled as zero rows with column dates as missing date and Id as employee id. Example -
Employee WH Date C3 C4 C5
11 6 2021-06-03 - - -
11 7 2021-06-06
11 8 2021-06-08
13 5 2021-06-01
13 7 2021-06-02
13 7 2021-06-28
The missing date for employee id 11 is 01,02,04,05,07,09---30. The missing date for employee id 13 is 03,--27, 29,30. Like so there can be multiple employees with missing date range. The DF needs to be filled with all those missing values having Id and date and the rest of the columns as 0. and to be reindexed.