Task: Data-transform-reshape (source dataset: Auto-Tables)

Given a table, predict what python pandas transformation may be needed on the given input table. Valid choices for transformation include: {"stack", "wide_to_long", "transpose", "pivot", "explode", "ffill", "subtitles"}. Note that each of these is a common Python Pandas operator. Some transformations can have parameters. Each transformation and its parameters are describe as follows.
 
- stack: collapse homogeneous cols into rows.
@param (int): stack_start_idx: zero-based starting column index of the homogeneous column-group.
@param (int): stack_end_idx: zero-based ending column index of the homogeneous column-group.
 
- wide_to_long: collapse repeating col-groups into rows.
@param (int): wide_to_long_start_idx: zero-based starting column index of the repeating col-groups.
@param (int): wide_to_long_end_idx: zero-based ending column index of the repeating col-groups.
 
- transpose: convert rows to columns and vice versa.
 
- pivot: pivot repeating row-groups into cols.
@param (int): pivot_row_frequency: frequency of repeating row-groups.
 
- ffill: fill structurally empty cells in tables.
@param (int): ffill_end_idx: zero-based ending column index of the columns to be filled.
 
- explode: convert composite cells into atomic values
@param (int): explode_column_idx: zero-based column index of the column to be exploded.
 
- subtitle: convert table subtitles into a column.
 
OUTPUT the predicted transformation name along with its parameters for the given INPUT table in a JSON, e.g., {"transformation": "stack", "stack_start_idx": 1, "stack_end_idx": 5}. If the input table needs multi-step transformations (e.g, ffill followed by stack), list JSON of each transformation sequentially in a list, e.g., [{"transformation": "ffill", "ffill_end_idx": 1}, {"transformation": "stack", "stack_start_idx": 1, "stack_end_idx": 5}]. No explanation is needed.

## Input:
| date       |         A |           B |          C |         D |
|:-----------|----------:|------------:|-----------:|----------:|
| 2000-01-03 |  2.33641  |  0.566806   |  1.92935   | -1.36518  |
| 2000-01-04 | -0.322057 | -1.61772    | -0.759277  |  1.31839  |
| 2000-01-05 | -1.131    | -0.110266   | -0.286735  |  0.639941 |
| 2000-01-06 |  0.587375 | -0.538714   | -0.919953  |  1.12947  |
| 2000-01-07 |  0.874314 |  0.672228   |  0.736142  |  0.780084 |
| 2000-01-10 |  1.63174  |  0.396014   | -2.35428   | -0.27965  |
| 2000-01-11 |  0.816869 | -2.15398    |  1.13906   |  1.01711  |
| 2000-01-12 |  0.503863 |  0.0534171  |  1.93234   |  0.327062 |
| 2000-01-13 |  1.75539  | -0.565007   | -1.17747   |  1.02305  |
| 2000-01-14 | -0.751747 | -0.34637    |  0.668403  | -0.536292 |
| 2000-01-17 |  0.929074 | -1.40366    | -0.488676  |  1.54035  |
| 2000-01-18 |  0.428052 | -0.671207   |  0.128174  | -0.675977 |
| 2000-01-19 |  1.69286  |  0.634957   |  0.465878  |  0.8921   |
| 2000-01-20 | -0.682629 | -1.21348    |  0.120807  |  0.273901 |
| 2000-01-21 | -0.542435 |  0.249146   | -0.434429  | -1.22751  |
| 2000-01-24 | -0.389862 | -1.05082    | -0.753909  |  0.402158 |
| 2000-01-25 | -1.70753  | -0.756511   |  0.951207  | -0.581816 |
| 2000-01-26 | -0.237148 | -0.0113838  | -0.844907  |  0.789878 |
| 2000-01-27 |  0.201708 |  1.07932    |  0.559456  |  0.239962 |
| 2000-01-28 | -0.65575  | -0.206515   |  1.55188   |  0.769321 |
| 2000-01-31 |  0.389476 |  0.385569   |  0.0423716 | -0.730048 |
| 2000-02-01 |  0.376907 | -0.688832   | -0.261269  |  0.610674 |
| 2000-02-02 |  0.911129 | -0.00115919 |  0.628269  |  1.35155  |
| 2000-02-03 | -0.403041 |  1.04275    | -0.156644  | -0.752886 |
| 2000-02-04 |  1.25087  |  0.237786   | -1.99011   | -0.275756 |
| 2000-02-07 | -0.506395 |  1.2442     | -0.380749  | -1.36078  |
| 2000-02-08 |  0.396053 |  1.10596    |  1.54405   |  0.815401 |
| 2000-02-09 | -0.205313 | -0.663897   |  0.977429  | -0.155134 |
| 2000-02-10 | -0.622223 | -1.82092    | -1.43474   | -2.65892  |
| 2000-02-11 |  0.291732 | -0.379377   |  0.447586  |  0.754854 |

## Output:


source: notebook
label: operator: stack
stack_start_idx: 1
stack_end_idx: 4
alternative_label: operator: transpose
operator: stack
stack_start_idx: 1
stack_end_idx: 30