#########################################################
pivot Function will help to summerize the data easily and you can use it for resample the data with different frequencies
In this file you will see pivot() and pivot_table() of pandas
all the attributes of pivot and pivot_table()
you can download all the required datasets for this
####################################################
crosstab will return you the frequency table of your data
after applying the cross tab on your original data you will able to see the freqency of each columns.