How to Pass Data from Previous Step in Pipedream using Python Code Originally for Zapier?

This topic was automatically generated from Slack. You can find the original thread here.

Hey team, I have some python code that I used to use in Zapier. I don’t really know what I’m doing in Python, and I can’t work out how to pass data from a previous step in, in Pipedream. It’s hopefully really obvious to somebody that knows what they’re doing. Could I get some help please?

input is from the trigger, which has {“table”:“asdf”} as the body. Code is here: import reimport statistics# Get the markdown table from the input fieldm - Pastebin.com

Hello , I think you’ll need a sufficient coding knowledge to understand your Python code and port it to Pipedream. If you’re still unsure that you can implement your usecase, you can:

  1. Learn more about Python. Also you can watch through Pipedream speedrun series to have more references
  2. Submit a ticket for Pipedream, stating the action on the app that you need to replace your Python code
  3. If you have subscribed to Pipedream team plan, you will be added to a dedicated slack support channel
  4. If you’d like to hire a Pipedream expert for your usecase, feel free to use this link: Connect with a Pipedream Partner

Here’s a basic example in the docs of using and exporting data from Python code steps: Python

thanks both - I copy/pasted the documentation into ChatGPT and asked it to fix the code, and it did!