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