I applied it like this
scaler = preprocessing.StandardScaler()

scaleddset = scaler.fit_transform(dset_train)

but then it gives me the 'only one element tensors can be converted to Python scalars’ error so… I just assumed it was because of the way I was loading the data…?