When running:
scaler = StandardScaler().fit(train)
I am getting this error:
After that I tried:
train = train.array.reshape(-1, 1)
And I got:
AttributeError: 'list' object has no attribute 'array'
How can I reshape by data to fix the value error?