Adds convenience function for converting pandas df to table.