ENH: Add a _get_values_levels method