[Solved] DataFrame in Script and Flow Showing Incorrect Headers
I expect the column headers: ID, Amount, Status
What being shown in Windmill: col0, col1, col2
Thanks.

import pandas as pd
from typing import Any
import csv
import io
def main() -> Any:
# Create a dummy CSV data string with 3 columns
csv_data = """ID;Amount;Status
abc123;1000;completed
def456;2000;pending
ghi789;3000;failed"""
# Use StringIO to treat the string as a file object
csv_file_like_object = io.StringIO(csv_data)
# Read the CSV data into a DataFrame directly
df = pd.read_csv(csv_file_like_object, delimiter=';')
# Debugging: Print DataFrame information
print("DataFrame columns:", df.columns)
print("DataFrame head:\n", df.head())
# Return the DataFrame
return dfThere are now many ways to pass specific context to the AIChat for full-code apps. You can use the inspector in the preview, select lines in the editor, use @ mentions (which works with datatables, backend runnables and frontend runnables)
rubenf · 5d ago
**Full-code apps local development in alpha with datatables and any local AI agents ** For the most adventurous of you, in 1.599.0 you can build raw apps fully locally and windmill will take care of providing enough contexts for an agent like Claude to use datatables for storage when initialized with `wmill app new` . Use `wmill app dev` in the app folder to generate a live preview that will also allow you to apply datatables migrations generated by the agents to generate any datatable needed. Highly recommend setting datatable in your workspace settings for the full experience. Require both an updated CLI and windmill. https://www.youtube.com/watch?v=hNQCmpehE2w Merry christmas 🎅
rubenf · 7d ago
little surprise to discover on latest 🎅 It's early, it works especially well with AI and the new data tables. We're eager for your feedback
rubenf · 2w ago