https://kedro.org/ logo
#beginners-need-help
Title
# beginners-need-help
j

j c h a r l e s

01/03/2022, 12:19 AM
Also, if I run the following:
Copy code
import yaml
yaml.dump(node_function(INPUT).to_dict(), open("charles.yml", "w"))
No error happens
d

datajoely

01/03/2022, 4:16 PM
This one is a bit weird - it's not really a Kedro issue, what are you trying to achieve here?
j

j c h a r l e s

01/03/2022, 10:08 PM
I wanted to have a node output YML instead of CSV
CSV filetype worked and then YML did not work
d

datajoely

01/04/2022, 9:29 AM
Okay you can use
yaml.YAMLDataSet
in your data catalog, you don't need to use the yaml library yourself
u

user

01/04/2022, 9:41 AM
My point when showing this was that
u

user

01/04/2022, 9:42 AM
The YAML data set would throw an error
u

user

01/04/2022, 9:42 AM
When I tried to return a dictionary from a node
d

datajoely

01/04/2022, 9:42 AM
oh sorry I got mixed up with the messages
u

user

01/04/2022, 9:42 AM
yet it would NOT when i ran it locally
u

user

01/04/2022, 9:42 AM
no worries
u

user

01/04/2022, 9:42 AM
all good
d

datajoely

01/04/2022, 9:42 AM
👍