Hi team, quick question: How do I use parameters ...
# questions
a
Hi team, quick question: How do I use parameters from my local/credentials.yml file in my base/catalog.yml file? For example,
#credentials.yml
win_user: 'user01'
#catalog.yml
data:
type: pandas.ExcelDataSet
filepath: C:\Users\${win_user}\data.xlsx
m
Credentials are not designed to work this way.
${win_user}
in your case is related to the path, not credentials. If you need to interpolate the path, based on some variable, you can use globals.
👍 1
f
And a
TemplatedConfigLoader
(or I think a
OmegaConfigLoader
) in your
settings.py
file
👍 1
☝️ 2
d
(And, for the standard/supported use of credentials in configuration, see https://docs.kedro.org/en/stable/data/data_catalog.html#feeding-in-credentials)
a
Accident
@marrrcin The problem with
globals.yml
is that each user has a different win_usr
m