Count of a value in consecutive timestamp in pandas
问题 Hour Site 01/08/2020 00:00 A 01/08/2020 00:00 B 01/08/2020 00:00 C 01/08/2020 00:00 D 01/08/2020 01:00 A 01/08/2020 01:00 B 01/08/2020 01:00 E 01/08/2020 01:00 F 01/08/2020 02:00 A 01/08/2020 02:00 E 01/08/2020 03:00 C 01/08/2020 03:00 G ….. 01/08/2020 04:00 x 01/08/2020 04:00 s ….. 01/08/2020 23:00 G 02/08/2020 00:00 G I have a dataframe like above. I want to count how many times a site comes in consecutive hours & start and end timestamp. wheres in each hour there are multiple sites. For