I want to apply tf.data transformations to a panda dataframe. According to the tensorflow docs HERE I can apply tf.data to a dataframe directly but the dtype of the dataframe should be uniform.
When I apply tf.data to my dataframe like below
tf.data.Dataset.from_tensor_slices(df['reports'])
it generates this error
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float).
When I print df['reports'].dtype it is dtype('O') which seems to be not uniformed, if this is the case then how can I convert this dataframe to uniform dtype.