def state_mask(state, df):
    """Used to select only one state
    
    Args:
        state (string): state to be masked
    
    Returns:
        df: subset of the data
    """
    mask_state = df["statefip"] == f"{state}"
    return df[mask_state].copy()