Counting observations after grouping by dates in pandas, when dates are non-unique
问题 What is the best way to count observations by date in a Pandas DataFrame when the timestamps are non-unique? df = pd.DataFrame({'User' : ['A', 'B', 'C'] * 40, 'Value' : np.random.randn(120), 'Time' : [np.random.choice(pd.date_range(datetime.datetime(2013,1,1,0,0,0),datetime.datetime(2013,1,3,0,0,0),freq='H')) for i in range(120)]}) Ideally, the output would provide the number of observations per day (or some other higher order unit of time). This could then be used to plot the activity over