move analytics to pandas