Python Program Using Pandas For Frequency