Hello! I have a node that outputs a dataframe and ...
# questions
g
Hello! I have a node that outputs a dataframe and I'd like to save that same dataframe on 2 different locations. Is there a quicker way than having a node saving the df on one of the locations and then another node that just does
lambda x:x
to save in the different location? E.g. by specifying multiple paths in the catalog? Thanks 🙂
j
funny, I was about to say "you can declare 2 outputs" but that's not going to work unless you do
Copy code
return df, df
in the node 😅
if you go down that path though, it would be something like
Copy code
return pipeline([
  ...
  node(
    ...
    outputs=["ds1", "ds2"]
  ),
])
(pseudocode, didn't test it but it should work)
g
Yeah I was hoping to not change the original node 🙂
But agree this will def work 😄
j
will let others comment but I don't think this is possible in Kedro without having a dummy node or modify the node
👍 1