Read Dataset
read_datasetRead paginated records from local SAS datasets using offset and limit, with optional column selection, pandas-style filtering, and value-label decoding for accurate data inspection.
Instructions
按 offset/limit 分页读取记录(records 为 JSON,NaN 为 null,日期为 ISO 字符串)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 数据集路径,相对 SAS_DATA_ROOT 或绝对路径。 | |
| limit | No | 返回行数(默认 20,上限 SAS_LOCAL_MCP_MAX_ROWS)。 | |
| where | No | 可选,pandas 查询表达式,如 "AGE > 18" 或 "SEX == 'F'"。 | |
| offset | No | 起始行号(默认 0)。用于翻到数据中部/尾部取样, 避免只看前几行(临床数据常是同一受试者)造成误判。 | |
| columns | No | 可选,只返回这些变量。 | |
| apply_labels | No | 为 True 时把 coded 值替换为 SAS 值标签文本。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||