How to connect csv, api (post) and json dataset? #1526
Replies: 1 comment 3 replies
-
This is a very interesting question! Thanks for explaining it all so clearly. Unfortunately the default The simplest solution is just to not use
This is a bit naughty because your node is no longer really a pure function, but you could also regard that request as doing some kind of data transformation maybe 🤔 It's not a terrible thing to do. If you really want to use a dataset for it then you'll need to write your own custom dataset that somehow combines
In the catalog you'd do:
This is also a bit weird but not a terrible thing to do. |
Beta Was this translation helpful? Give feedback.
-
Hi,
can anybody help me with the connection of a
pandas.CSVDataSet
, aapi.APIDataSet
and ajson.JSONDataSet
? I want to iterate over the entries in the csv file and one by one use them in a post request to the api and then collect the responses in a single json file.A toy example: Let's say I have a csv file called friends.csv containing
in my data catalog
I can access the api programmatically.
Can this be done more elegantly, e.g. using the dataset definition from the data catalog? I am unsure how to feed the arguments to the api dataset, which are the contents of the csv dataset.
Where would you do the iteration part, e.g. how many nodes would you use to connect these three datasets?
Any feedback is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions