How do I reshape a pandas dataframe into a 3 dimensional object with tensorflow?

I have a Pandas df with 12 rows and 24 columns, but the input shape required for my Tensorflow model is (None, 24, 12). I've tried a few different methods inducing using df.values but I keep getting the error:

Input 0 of layer sequential is incompatible with the layer: expected ndim=3, found ndim=2. Full shape received: [None, 12]

How do I reshape my df to be in the required shape?

The (None, 24, 12) comes from the shape that I get when doing tf.shape(data) on the data that is fed into the model when training, so the models requires inputs with the same shape.