MCPcopy
hub / github.com/StructuredLabs/preswald / load_data

Function load_data

preswald/tutorial/hello.py:71–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69# --- LOADING DATA ---
70@workflow.atom()
71def load_data():
72 text("## 2. Viewing Data with `table()`")
73 text("Let's load a sample dataset and display it using the `table()` component.")
74
75 df = get_df("sample_csv")
76 table(df, limit=10) # Display first 10 rows
77
78 text(
79 """
80The `table()` component displays data in a tabular format.
81**Example:**
82```python
83from preswald import table
84table(df, limit=10)
85```
86- **limit**: Use this parameter to control how many rows to display.
87"""
88 )
89 return df
90
91
92# --- PLOTTING DATA ---

Callers

nothing calls this directly

Calls 3

textFunction · 0.90
get_dfFunction · 0.90
tableFunction · 0.90

Tested by

no test coverage detected