You initialized transform = StandardScaler() which initializes transform.mean_ and transform.std_ to None
You didn’t call fit function and directly called __call__ method in CSVDataset which will result in the error you have shown.