def interpolate_weather_features(dataset):
    """
    Linear time-based interpolate of temperature and humidity features.
    """
    dataset = dataset.copy()
    for feature in ["temp", "humidity"]:
        dataset[feature] = dataset[feature].interpolate(
            method="time", limit_direction="both"
        )
    return dataset