Is there any way to add other hours which are not shown in the dataframe, and set its value to 0?
+---+------+--------------+<br>
| hr|counts| app|<br>
+---+------+--------------+<br>
| 02| 1| "DNS"|<br>
| 13| 2| "DNS"|<br>
+---+------+--------------+<br>
And I want it to be
+---+------+--------------+<br>
| hr|counts| app|<br>
+---+------+--------------+<br>
| 00| 0| "DNS"|<br>
| 01| 0| "DNS"|<br>
| 02| 1| "DNS"|<br> <---- new
| 03| 0| "DNS"|<br>
| 04| 0| "DNS"|<br>
| 05| 0| "DNS"|<br>
.<br>
.<br>
| 11| 0| "DNS"|<br>
| 12| 0| "DNS"|<br>
| 13| 2| "DNS"|<br> <---- new
| 14| 0| "DNS"|<br>
| 15| 0| "DNS"|<br>
| 16| 0| "DNS"|<br>
.<br>
.<br>
| 22| 0| "DNS"|<br>
| 23| 0| "DNS"|<br>
+---+------+--------------+<br>
dtypes:
counts float64
app object
dtype: object