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:
| A      | B                                                                                                                   |
|:-------|:--------------------------------------------------------------------------------------------------------------------|
| Date1  | Territory1                                                                                                          |
| Date2  | Territory2, Territory3, Territory4, Territory5, Territory6, Territory7, Territory8, Territory9, Territory10         |
| Date3  | Territory11, Territory12, Territory13                                                                               |
| Date4  | Territory14, Territory15, Territory16, Territory17                                                                  |
| Date5  | Territory18, Territory19                                                                                            |
| Date6  | Territory20, Territory21, Territory22, Territory23, Territory24, Territory25, Territory26, Territory27              |
| Date7  | Territory28, Territory29, Territory30, Territory31, Territory32, Territory33, Territory34, Territory35, Territory36 |
| Date8  | Territory37, Territory38, Territory39, Territory40, Territory41                                                     |
| Date9  | Territory42, Territory43, Territory44, Territory45, Territory46, Territory47, Territory48, Territory49, Territory50 |
| Date10 | Territory51, Territory52, Territory53, Territory54, Territory55, Territory56                                        |
| Date11 | Territory57, Territory58, Territory59, Territory60, Territory61, Territory62, Territory63, Territory64              |
| Date12 | Territory65, Territory66, Territory67, Territory68, Territory69, Territory70                                        |
| Date13 | Territory71, Territory72, Territory73                                                                               |
| Date14 | Territory74, Territory75, Territory76, Territory77, Territory78, Territory79                                        |
| Date15 | Territory80, Territory81, Territory82, Territory83, Territory84, Territory85, Territory86                           |
| Date16 | Territory87, Territory88, Territory89, Territory90, Territory91, Territory92, Territory93, Territory94              |
| Date17 | Territory95, Territory96, Territory97, Territory98                                                                  |
| Date18 | Territory99, Territory100, Territory101, Territory102, Territory103, Territory104, Territory105, Territory106       |
| Date19 | Territory107, Territory108, Territory109                                                                            |
| Date20 | Territory110                                                                                                        |

## Output:


source: excel_forum
label: explode