@morph.load_data annotation, you can store the output result of the function in context.data and use it.
Parameters
string
required
The output result of the function specified by name is stored in context.data
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
@morph.load_data annotation, you can store the output result of the function in context.data and use it.
@morph.load_data(
name: str,
)
def func_name(context):
# write your code here
@morph.func
@morph.load_data("example_sql_cell")
def get_data_from_database(context):
sql_result_df = context.data["example_sql_cell"]
# write your code here using sql_result_df
return sql_result_df