Code for analyzing the pandit data