'Could not extract hourly basis information in ggplot2 python

I have tried to see how the data reflect in hourly basis. I get the result of the specific months on daily basis with below format. But when trying with the below code for hourly basis in a day - it didn't work. Thank you.

    `time = (pd.Timestamp("2020-01-01 00:00:00"), pd.Timestamp("2020-01-01 23:59:59")) 
ggplot(df) + \ 
scale_x_datetime(
   limits = time,
   date_breaks = '1 day', 
   date_minor_breaks = '1 hour',    
 ) +  labs(y= 'Count') + \
geom_histogram(aes(x = 'Time', fill = 'Category' ), binwidth = .8)`        


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source