def intervals_per_day(df_or_series):
    """Returns how many rows per day there are in **df_or_series**"""
    res = df_or_series.index[1] - df_or_series.index[0]
    return int((3600 * 24) / res.seconds)