def num_hours(s):
    """
    Return number of data points in 's'

    Args:
        s(:obj:`pandas.Series`): The data to be checked for number of data points
    Returns:
        :obj:`int`: Number of hours in the data
    """
    n_hours = len(s.resample("H"))

    return n_hours