def check_storage_efficiency(df):
    """Efficiency should be between 0 and 1.
    Otherwise, a ValueError is raised."""
    if any(df['efficiency'] > 1) or any(df['efficiency'] <= 0):
        raise ValueError('Storage efficiencies should be in the interval [0,1]'
            )
