load_data_source
Load time series data from pandas, files, SQL, or URLs into a data handle for forecasting. Choose synchronous or asynchronous execution.
Instructions
Load data from various sources into a data handle for forecasting. Can run synchronously (blocking) or asynchronously in the background. Supported source types: 'pandas' - from a dict or inline data (keys: data, time_column, target_column). 'file' - from CSV, Excel (.xlsx), or Parquet (keys: path, time_column, target_column). 'sql' - from a SQL database (keys: connection_string, query, time_column, target_column). 'url' - from a web URL pointing to CSV/Excel/Parquet (keys: url, time_column, target_column). GUIDELINES: 1. NEVER assume a column is a time index unless the user says so. 2. ALWAYS specify 'target_column' if the user mentions a specific variable. 3. The first column is used as target by default — if that's a date column, specify target_column explicitly. 4. For non-standard date formats, omit 'time_column' to use an integer index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Data source configuration. Must include 'type' (pandas, sql, file, url). | |
| run_async | No | If True, loads data in the background (non-blocking) and returns a job_id. If False (default), blocks and returns the data_handle directly. |