sample_dataframe
Extract sample rows from a dataframe for data exploration and analysis. Specify the number of rows and choose between random or sequential sampling to examine dataset structure.
Instructions
Get a sample of rows from a dataframe.
Args: name: Name of the dataframe n: Number of rows to return (default: 10) random: If True, return random sample. If False, return first n rows.
Returns: Sample rows from the dataframe.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| n | No | ||
| random | No |