A method that returns only the date segment can be used to aggregate by a date column while disregarding the time element.
The method for doing this with Python (Pandas) and SQL is as follows:
SELECT DATE(x) AS y, COUNT(*)
FROM your_table
GROUP BY y;
Python (Pandas) Example:
df['y'] = df['x'].dt.date
df.groupby('y').size()
In both examples, x is the datetime column, and y is the new column grouping by date only.