Javier Goez Sanz
10/04/2023, 8:43 AMAttributeError: 'dict' object has no attribute 'startswith'
Apparently, the error goes back to one of this:
\kedro\pipeline\modular_pipeline.py:218 in pipeline
\kedro\pipeline\modular_pipeline.py:148 in _get_param_names_mapping
\kedro\pipeline\modular_pipeline.py:113 in _normalize_param_name
Any help is really appreciated!datajoely
10/04/2023, 8:46 AMJavier Goez Sanz
10/04/2023, 8:47 AMdef standard_pipeline(dict_name, config_dict):
save_results = config_dict.get("save_results")
return modular_pipeline(
pipe= aux(),
inputs={"df": 'raw'},
parameters={"params:params_dict": ArawToBclean_dicts[dict_name].get("params_dict")},
outputs={
"clean": 'clean'
if save_results
else "memory_" + config_dict["clean"],
},
namespace=dict_name,
)
)
datajoely
10/04/2023, 8:49 AMmodular_pipeline()
is that a method you’ve defined yourself?Javier Goez Sanz
10/04/2023, 8:49 AMfrom kedro.pipeline.modular_pipeline import pipeline as modular_pipeline
datajoely
10/04/2023, 8:50 AMaux()
work on its own?Javier Goez Sanz
10/04/2023, 8:53 AMdef create_pipeline(**kwargs) -> Pipeline:
return Pipeline(
[
node(
func=clean_df,
inputs={
"df":"raw",
"params_dict":"params:params_dict"},
outputs=["clean"],
name="CleanFile",
)
]
)
datajoely
10/04/2023, 9:08 AMstartswith
is failing and inspect what is actually in name
Javier Goez Sanz
10/04/2023, 9:23 AM