First of all, thanks for the replies and advice! if I’m understanding correctly, my Dataset class should look like this:

class OUDataset(Dataset):
def init(self, csv_file):
self.oudataframe = pd.read_csv(csv_file)
self.seq_len = 100
def len(self):
return len(self.oudataframe)
def getitem(self, idx):
dy = self.oudataframe.iloc[idx, 0:]
return self.seq_len, dy

However, I get an error when calling dataloader:

TypeError: batch must contain tensors, numbers, dicts or lists; found <class ‘pandas.core.series.Series’>

My call to Dataloader looks like:

dataSet = OUDataset(csv_file=filelocationhere)
dataloader = Dataloader(dataSet, batch_size=20, shuffle=True)

Any idea what might be going on?
Edit:
I changed the getitem method to:
dy = torch.tensor(self.oudataframe.iloc[idx,0:])
and no longer get the same error. How can I verify that my tensors are the correct shape?