added some utility functions for pandas