I am not able to understand why I am getting this wrong pipeline output.
Pipeline code:
my_pipeline = Pipeline(steps=[
('imputer', SimpleImputer(strategy='median')),
('std_scaler', StandardScaler())
])
Real data:
real = [[0.02498, 0.0, 1.89, 0.0, 0.518, 6.54, 59.7, 6.2669, 1.0, 422.0, 15.9, 389.96, 8.65]]
The pipeline output that I want:
want = [[-0.44228927, -0.4898311 , -1.37640684, -0.27288841, -0.34321545, 0.36524574, -0.33092752, 1.20235683, -1.0016859 , 0.05733231, -1.21003475, 0.38110555, -0.57309194]]
But after running the below code:
getting = my_pipeline.fit_transform(real)
I am getting:
[[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]