Getting API Response From Python tool onto the canvas
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Bri4th
5 - Atom
‎01-18-2024
12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
I have successfully called an API and got my response in the Python tool but I don't know how to get the response into an output node.
Thanks
Labels:
- Labels:
- Python
4 REPLIES 4
TimN
13 - Pulsar
‎01-18-2024
12:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It has to be a Pandas Data frame. Then you can do Alteryx.write(df,1)
TimN
13 - Pulsar
‎01-18-2024
12:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
An example...
output_df = DataFrame(packages ,columns=["package","version"])
Alteryx.write(output_df,1)
‎01-18-2024
12:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can I get that Outputdata into a Pandas data frame, is there another step I could write?
TimN
13 - Pulsar
‎01-18-2024
12:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
