My file contains a column called 'Id';
eg:
Id bill
---------
1 aaa
2 bbb
3 ccc
1 ddd
2 ee
I would like to return the count of Ids. Here it should be count(data['Id')) = 3 (not 5)
print(df.groupby('Id').count()) prints the whole file with rows count and column count. How can I make sure simple it prints how many unique Ids present in the column?
df["Id"].nunique().