I have two variables:
numeric_cols = ['FamilyMembers', 'ChronicDiseases']
and I have this pipeline:
numeric_transformer = Pipeline(
steps=[('scaler', StandardScaler(),
'red_dim', PCA())
])
and I get the error:
ValueError: too many values to unpack (expected 2)
I get the same error with 4 variables.
How can I fix this error?