valkrem at yahoo.com
Thu Dec 29 10:46:13 EST 2016
I have a sample of data set and would like to summarize in the following way.
I want get the total count by ID, and the the number of classes
by ID. The y variable is either 10 or 20 and count each by iD
The result should look like as follows.
I can do this in two or more steps. Is there an efficient way of doing it?
but I want get the class count as well like as follows
how do I do it in python?
thank you in advance
More information about the Python-list