def df_to_code(df):
    """
    Returns a string that defines to df, used for producing minimal reporoducable examples
    or simple dfs to be used in unit testing.
    eval(df_string) could be used to evaluate the string, or copy paste into code.
    """
    df_string = ( f"pd.DataFrame ( { str( df.to_dict() ) } )")
    return(df_string)