How to make a csv dataset iterable

Hi, I’m new to pytorch and I have a question.
I have a dataframe which I have splitted in x (Features) and y (Labels).
Now in,batch_size=batch_size,train=ture)
How do i define train_dataset to make it iterable? Is it in the form of tuple of x_train,y_train or a list?

I think you are searching for this tutorial. It reads the dataset with pandas and transforms into iterable dataset.

Thank you for this! :smiley: