dataframe to tf data code example
Example 1: pandas dataframe replace inf
df.replace([np.inf, -np.inf], np.nan)
Example 2: dataframe to tf data
dataset = tf.data.Dataset.from_tensor_slices((df.values, target.values))
FROM df to tf!!!! datasets!!!