Hi
I’ve had some problems with this project so i Googled for solution… and there’s a thing that I can’t understand
df_cat = pd.DataFrame(
df_cat.groupby(
['variable', 'value', 'cardio'])['value'].count()).rename(
columns={'value': 'total'}).reset_index()
Inside the pd.DataFrame() we have some column names and also [‘value’].count()
I get why there is count(), but i can’t understend where the second ‘value’ series comes from.
With this hint I have (kind of…) finished job but it’s pointless as i don’t get where does the second ‘value’ comes from.
Anybody can help me?