def METHOD_NAME(df: pd.DataFrame) -> pd.DataFrame:
    """Adapt dataframe column names to WMD-like format."""
    # Sort columns
    cols_first = ["entity", "week", "age"]
    df = df[cols_first + sorted(col for col in df.columns if col not in cols_first)]
    # String columns
    df.columns = [underscore(str(col)) for col in df.columns]
    return df