keras/src/trainers/data_adapters/array_slicing.py/PandasSeriesSliceable/convert_to_numpy
class PandasSeriesSliceable:    def convert_to_numpy(cls, x):
        return np.expand_dims(x.to_numpy(), axis=-1)