def identify_cat_con(df,threshold=0.05):
    """
    Heuritic identification of continuous and categorical data
    Parameters:
    -----------
    df: pd.DataFrame
    threshold: float, [0,1], default=0.05
        Ratio of unique values vs total number of values
    
    Returns:
    --------
    con_data: list of column names of continuous variables
    cat_data: list of column names of categorical variables
    """
    cat_data = []
    con_data =[]
    for col in df.columns:
        colcount = df[col].nunique()/df[col].count()
        if colcount<=threshold:
            cat_data.append(col)
        else:
            con_data.append(col)

    return con_data,cat_data