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:
|   year |   Jan |   Feb |   Mar |   Apr |   May |   Jun |   Jul |   Aug |   Sep |   Oct |   Nov |   Dec |
|-------:|------:|------:|------:|------:|------:|------:|------:|------:|------:|------:|------:|------:|
|   1876 |   3.6 |  -4.8 |   1.5 |  -0.1 |  -4.7 |   6.9 |  -5   |   9.2 |   8.6 |   4.5 |   1.7 |  -1.8 |
|   1877 |   7.2 |  -1.7 |  -5.1 |  -9.7 |   5.3 |  -6.8 |   0.7 |  -5.8 |  -6.2 |   8.9 |   2.2 |  -1.2 |
|   1878 |  -4.5 |   3.1 |   2.8 |   3.6 |   7.6 |   6.8 |   0.3 |  -2   |  -7.2 |  -6.3 |   6.7 |  -5.5 |
|   1879 |   2.6 |  -3.4 |  -4.8 |   2.7 |  -6   |  -8.1 |  -9.1 |   3.2 |   5.3 |   2   |   9.7 |  -8.4 |
|   1880 |  -6.6 |  -2.8 |  -7   |  -1   |  -1.9 |   4.8 |   5.8 |  -7   |  -9.2 |  -4.7 |   5   |  -2.9 |
|   1881 |   0.2 |  -6.5 |   1.6 |  -8.3 |   2.5 |  -0.3 |   4.7 |   4.7 |   1.8 |   9.4 |   1   |   4.4 |
|   1882 |  -9.7 |  -2   |  -0.1 |   2.5 |   2.5 |  -6   |  -8.1 |  -3.1 |   8.9 |  -3   |  -1.5 |  -9.8 |
|   1883 |   4.5 |  -8.1 |  -9.7 |  -7.3 |  -2.3 |   8.9 |   7.7 |   5.3 |   3   |  -1.5 |   4   |  -9.4 |
|   1884 |  -4.7 |  -0.4 |  -4.1 |   8.1 |  -1.2 |   2.4 |  -4.3 |  -0.3 |  -7.3 |  -4.8 |   4.5 |  -5.4 |
|   1885 |   2.7 |   4.3 |  -3.7 |   6.4 |   2.2 |   0.4 |  -5   |  -5.2 |   9.2 |   6.6 |  -9.8 |   2.9 |
|   1886 | -10   |  -5.1 |   1.3 |   6.1 |  -1.5 |  -9   |   9.1 |   4.8 |  -4.5 |   1.2 |   9.7 |   0.4 |
|   1887 |   6.6 |  -0.8 |   6.6 |  -8.1 |   2.9 |   5.7 |   0.2 |  -2.6 |   1.2 |  -6   |   3.2 |   2.4 |
|   1888 |   4.2 |   0.8 |   4.8 |  -8.5 |   4.8 |   7.8 |   5.3 |   7   |   7.8 |   9.5 |   6.2 |   6.5 |
|   1889 |  -2   |  -0.7 |  -6.3 |  -5.3 |   3.1 |   1.8 |   8.2 |  -7.7 |  -5.9 |  -0.3 |  -5.7 |  -9.1 |
|   1890 |  -5.1 |  -9.6 |   7.5 |  -9.9 |  -5.1 |  -6.3 |  -6   |   9.8 |   7.8 |   4.3 |   2.6 |   4   |
|   1891 |  -7.9 |  -3.6 |   4.3 |  -3.6 |  -5.1 |  -3.5 |   0.9 |  -8.3 |   8.9 |   9.9 |   8.9 |   2.6 |
|   1892 |  -8.8 |   9.8 |  -8.6 |  -8.1 |   0.4 |  -4.9 |   8.8 |   6.1 |  -3.7 |  -2   |  -5.9 |   8.1 |
|   1893 |  -6.2 |  -0.6 |  -3.5 |  -1.9 |  -2.8 |  -7.6 |   3.3 |  -0.6 |  -8.6 |  -1.5 |   6.9 |  -9.6 |
|   1894 |  -8.2 |   6.1 |   9.1 |  -3.3 |  -7.7 |  -9.8 |   4.1 |  -9.4 |  -6.2 |   9.6 |  -4   |  -3.6 |
|   1895 |  -1.6 |   7.3 |   2.4 |   6.7 |   5.6 |  -5.3 |   5.1 |   7.3 |  -2.6 |   5   |   7.7 |  -1.5 |
|   1896 |   0.1 |  -3.9 |   2.7 |   1.6 |  -1.8 |   1.9 |  -7.8 |  -9.6 |   1.7 |  -2.8 |  -4.4 |   4.8 |
|   1897 |  -5.8 |  -1.5 |   5.2 |  -0.5 |   8   |  -0.2 |  -0.2 |  -8   |  -7.9 |  -4.3 |   6.1 |   5   |
|   1898 |  -9.1 |   5.1 |   4.2 |  -5.3 |   2.3 |   2.1 |  -9.1 |  -4.6 |  -8.5 |   8.7 |   1   |  -4.5 |
|   1899 |   8.3 |   4.6 |   3.2 |  -7.5 |  -6.8 |  -9.5 |   2.2 |   4   |   9.5 |   4.2 |  -6.3 |  -1.6 |
|   1900 |  -3.8 |  -9.7 |  -0.7 |  -7.1 |  -3.8 |  -0.5 |  -8.7 |   0.6 |  -1.4 |   8.2 |   6.9 |  -9.3 |
|   1901 |  -0.3 |   8.7 |   7   |  -7.8 |   5.1 |   8.3 |   5.1 |   1.9 |  -1.5 |   9.8 |   1.3 |  -3.8 |
|   1902 |  -3.6 |  -1.2 |  -2.1 |  -5.1 |   6.1 |  -9.3 |   7.5 |   2.1 |   5.3 |   9.1 |   5.1 |  -3.2 |
|   1903 |   0.9 |   5.6 |   0.3 |  -2.7 |  -2.3 |   1.6 |   6.6 |   2.7 |   8.4 |   6.9 |  -2.6 |   4.1 |
|   1904 |   5.8 |   2.6 |  -8.3 |  -7   |   2.6 |  10   |   9   |  -3.8 |   6.7 |   4   |   7.8 |  -5.8 |
|   1905 |  -8.9 |  -8.2 |   4.1 |   2.6 |  -9.5 |   4.5 |  -9   |   5.3 |   4.1 |  -6.1 |   0.1 |   6   |

## Output:


source: stackoverflow
label: operator: stack
stack_start_idx: 1
stack_end_idx: 12
alternative_label: operator: transpose
operator: stack
stack_start_idx: 1
stack_end_idx: 30