Using make_csv_dataset we could read an CSV file to tensorflow dataset object
csv_data = tf.data.experimental.make_csv_dataset(
"./train.csv",
batch_size=8190,
num_epochs=1,
ignore_errors=True,)
now csv_data is of type tensorflow.python.data.ops.dataset_ops.MapDataset. How can I find the size or shape of csv_data.
print(csv_data) give column information as below
<MapDataset element_spec={'title': TensorSpec(shape=(None,), dtype=tf.string, name=None), 'user_id': TensorSpec(shape=(None,), dtype=tf.string, name=None)}>
of course getting the could from train_recom.csv using and pandas.read_csv is on option, just was curious if tensorflow has anything easier.