SOS : Medical Data Visualizer project

Hello, can someone provide me with a tip on this part of the project

# Group and reformat the data to split it by 'cardio'. Show the counts of each feature. You will have to rename one of the collumns for the catplot to work correctly.
    df_cat = pd.DataFrame(df_cat.groupby(["cardio","variable","value"])["value"].count()).rename(columns={"value":"total"})

    # Draw the catplot with 'sns.catplot()'
    fig = sns.catplot(x="variable", y="total", hue="cardio", data=df_cat, kind="bar")

full code here
Thank you

With what exactly do you need help?

“cardio”, “variable” and “value” are grouped, how do I access them one by one to pass them as parameter to seaborn.catplot