df_cross = pd.crosstab(index=df['values'], columns=[df['convert_me'], df[
    'age_col']])
df_cross.columns = ['{0}_{1}'.format(l1, l2) for l1, l2 in df_cross.columns]
df_cross
R dcast equivalent in python pandas