added a method that creates a dataframe containing all the entries in the CPD with its values