def reclass_dummy(grand_proc, new_class):
    """ Creates a binary (T/F) dam main use category to indicate whether a dam is 
    used for hydroelectricity (main and/or secondary) or not. 
    '1' = hydroelectric; '0' = not hydroelectric
    
    Parameters
    -----------
    grand_proc : geodataframe
        Processed geodataframe to add new column
    
    new_class : string
        Name of new dam main use column to be created
    
    Returns
    --------
    grand_proc :geodataframe
        The geodataframe with the added newly created column
    """
    grand_proc[new_class] = grand_proc['MAIN_HYDRO'].apply(lambda x: '1' if (x=='Hydroelectricity')
                                                           else '0')    
    return grand_proc