sample_data
Retrieve a random sample of N rows from a dataset to uncover data variety when head or tail views are insufficient.
Instructions
Return a random sample of N rows. Use when head/tail are not representative. Random sampling reveals data variety better. Example: sample_data(n=5)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| df_name | No | ||
| random_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |