I have df:
orgs feature1 feature2 feature3
0 org1 True True NaN
1 org1 NaN True NaN
2 org2 NaN True True
3 org3 True True NaN
4 org4 True True True
5 org4 True True True
Now i would like count the number of distinct orgs per each feature. basically to have a df_Result like this:
features count_distinct_orgs
0 feature1 3
1 feature2 4
2 feature3 2
Does anybody have an idea how to do that?