sample_dataset
Create a representative subset of a dataset using random, stratified, systematic, first n, or last n sampling methods.
Instructions
Create a sample from a dataset
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_name | Yes | Name of the dataset to sample | |
| sample_method | No | Sampling method | random |
| sample_size | No | Sample size (as fraction if <1, as count if >=1) | |
| target_column | No | Target column for stratified sampling | |
| output_name | Yes | Name for the sampled dataset | |
| random_state | No | Random seed for reproducibility |