added ability to get the data as pandas data frame