I have an issue with groupby in pandsa. My DF looks like below:
time ID
01-13 1
01-13 2
01-14 3
01-15 4
01-15 5
I need result like below:
time ID
01-13 2
01-14 1
01-15 2
So basically I need to count frequency ID by data. I treid with this but I am not sure of result (df is huge). Any idea? Thanks for help
df = df.groupby("Time").Id.value_counts()
Best regards