Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions llms/BuildCodePrompt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ def udf(path: str='s3://fused-sample/demo_data/table/US_states.geojson'):
states = gpd.read_file(path)
return states

Excel Sheet (default to the first sheet, and set header to None)
@fused.udf
def udf(path: str = "s3://fused-sample/demo_data/housing_2024.xlsx"):
import pandas as pd
xls = pd.ExcelFile(path, engine="openpyxl")
print("Available sheets", xls.sheet_names)
df = pd.read_excel(xls, sheet_name=0, header=None)
return df


HTML:
Return HTML using the the following generic HTML UDF format (i.e. use common = fused.laod() + return common.html_to_obj(html_content)) even when making altair charts :

Expand Down