Name ID1 ID2 Info Owner
John 1001 100 \\go\to\store MATT
John 1001 100 \\go\t0\store MATT
John 1001 10o \\go\to\store JOE
John 1001 100 \\go\to\store MATT
Name ID1 ID2 Info Owner Freq
John 1001 100 \\go\to\store MATT 2
John 1001 100 \\go\t0\store MATT 1
J0hn 1001 100 \\go\to\store JOE 1
John 1001 100 \\go\to\store MATT 2
1) df.groupby('Name').agg(lambda x: list(x).count(['Name', 'Info','Owner'])
2) df.groupby(['Name', 'Info","Owner"]).size())
--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.