Skip to main content

2 min with Fused

Quick ways to get started with Fused in Workbench.

Open a simple dataset​

@fused.udf
def udf(path = "s3://fused-sample/demo_data/housing/housing_2024.csv"):
import pandas as pd
housing = pd.read_csv(path)

Convert data quickly​

@fused.udf
def udf():
import pandas as pd
df = pd.read_excel("s3://fused-sample/demo_data/housing_2024.xlsx")
df.to_parquet("s3://fused-sample/demo_data/housing_2024.parquet")

return df

Turn any data into an API​

Turn any code into an API (similar to our Quickstart):

@fused.udf
def udf(path: str = "s3://fused-sample/demo_data/housing/housing_2024.csv"):
import pandas as pd
housing = pd.read_csv(path)
housing['price_per_area'] = round(housing['price'] / housing['area'], 2)

return housing[['price', 'price_per_area']]

Preview datasets​

Explore cloud storage directly in the File Explorer tab

Profile your code​

Workbench's built-in profiler provides:

  • Line by line runtime
  • Memory usage
  • Total runtime
  • Total file size

Vibe coding in Fused​

You can use Fused's AI to help you code!

Watch our setup video or:

  • Create a new UDF
  • Click "Ask AI"
  • Write prompt!
  • Copy the code from the AI Chat into the editor
  • See your results! (or press Shift + Enter if it didn't auto run)

Share your build:

  • Save UDF (Cmd + S)
  • Click "Share"
  • Create Shared token by clicking "Share"
  • Click on link

Prompt & Repeat!

Prompt Ideas​

If you already have some data:

Make an interactive HTML graph of this data

Make an up to date dashboard from scratch:

Build a very simple Wildfire tracking app in HTML using real world data

Fun ideas:

I'm bored, make a HTML game for me!

Examples:

Tips & Tricks​

  • Change the model! We provide models from all major vendors:
    • Kimi K2 -> Best well balanced model. Fast & Very Good
    • GPT 4.1 -> Advanced coding, higher context
    • Claude Opus 4 -> Slower, but great for complex coding
  • Try out the suggestions! Our models auto suggest what you could do next based on all your code
  • Ask crazy things you don’t know how to do!
  • Come back tomorrow, we'll most certainly have some new stuff! πŸ§‘β€πŸ’»

Share your experience​

  • Tag udf_ai on Twitter, we’ll repost you!
  • Share which prompts have worked with us!

Data First IDE: Table / Map view​

Workbench is built for data teams.

Toggle between Map/Table view based on your data!

Return HTML code & make a chart!​

You can return HTML code directly in Fused and turn your data into an embedded Chart:

@fused.udf
def udf(path = "s3://fused-sample/demo_data/housing/housing_2024.csv"):
from fastapi import Response
import pandas as pd
import altair as alt

housing = pd.read_csv(path)
housing['price_per_area'] = round(housing['price'] / housing['area'], 2)

chart_html = alt.Chart(housing).mark_point().encode(
x='price',
y='price_per_area'
).to_html()


return Response(chart_html.encode('utf-8'), media_type="text/html")

Go to the "Embed" tab to see your chart:

HTML Chart Example