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:
| Character                                        | Ant-Man films    | Spider-Man films   | Thor films           | Avengers films       | Black Panther    | Captain America films   | Captain Marvel    | Doctor Strange       | Guardians of the Galaxy films   | The Incredible Hulk        | Iron Man films              |
|:-------------------------------------------------|:-----------------|:-------------------|:---------------------|:---------------------|:-----------------|:------------------------|:------------------|:---------------------|:--------------------------------|:---------------------------|:----------------------------|
| Bruce Banner Hulk                                |                  |                    | Mark Ruffalo         | Mark Ruffalo         |                  |                         |                   |                      |                                 | Edward Norton Lou Ferrigno | Mark Ruffalo                |
| James "Bucky" Barnes Winter Soldier              | Sebastian Stan   |                    |                      | Sebastian Stan       |                  | Sebastian Stan          |                   |                      |                                 |                            |                             |
| Clint Barton Hawkeye                             |                  |                    | Jeremy Renner        | Jeremy Renner        |                  | Jeremy Renner           |                   |                      |                                 |                            |                             |
| Peggy Carter                                     | Hayley Atwell    |                    |                      | Hayley Atwell        |                  | Hayley Atwell           |                   |                      |                                 |                            |                             |
| Drax the Destroyer                               |                  |                    |                      | Dave Bautista        |                  |                         |                   |                      | Dave Bautista                   |                            |                             |
| Nick Fury                                        |                  |                    | Samuel L. Jackson    | Samuel L. Jackson    |                  | Samuel L. Jackson       | Samuel L. Jackson |                      |                                 |                            | Samuel L. Jackson           |
| Gamora                                           |                  |                    |                      | Zoe Saldana          |                  |                         |                   |                      | Zoe Saldana                     |                            |                             |
| Groot                                            |                  |                    |                      | Vin Diesel           |                  |                         |                   |                      | Vin Diesel                      |                            |                             |
| Heimdall                                         |                  |                    | Idris Elba           | Idris Elba           |                  |                         |                   |                      |                                 |                            |                             |
| Maria Hill                                       |                  |                    |                      | Cobie Smulders       |                  | Cobie Smulders          |                   |                      |                                 |                            |                             |
| Harold "Happy" Hogan                             |                  | Jon Favreau        |                      |                      |                  |                         |                   |                      |                                 |                            | Jon Favreau                 |
| Scott Lang Ant-Man                               | Paul Rudd        |                    |                      | Paul Rudd            |                  | Paul Rudd               |                   |                      |                                 |                            |                             |
| Loki                                             |                  |                    | Tom Hiddleston       | Tom Hiddleston       |                  |                         |                   |                      |                                 |                            |                             |
| Wanda Maximoff Scarlet Witch                     |                  |                    |                      | Elizabeth Olsen      |                  | Elizabeth Olsen         |                   |                      |                                 |                            |                             |
| Nebula                                           |                  |                    |                      | Karen Gillan         |                  |                         |                   |                      | Karen Gillan                    |                            |                             |
| Peter Parker Spider-Man                          |                  | Tom Holland        |                      | Tom Holland          |                  | Tom Holland             |                   |                      |                                 |                            | Max Favreau                 |
| Virginia "Pepper" Potts                          |                  | Gwyneth Paltrow    |                      | Gwyneth Paltrow      |                  |                         |                   |                      |                                 |                            | Gwyneth Paltrow             |
| Peter Quill Star-Lord                            |                  |                    |                      | Chris Pratt          |                  |                         |                   |                      | Chris Pratt                     |                            |                             |
| James "Rhodey" Rhodes War Machine / Iron Patriot |                  |                    |                      | Don Cheadle          |                  | Don Cheadle             |                   |                      |                                 |                            | Terrence Howard Don Cheadle |
| Rocket                                           |                  |                    |                      | Bradley Cooper       |                  |                         |                   |                      | Bradley Cooper                  |                            |                             |
| Steve Rogers Captain America                     | Chris Evans      | Chris Evans        | Chris Evans          | Chris Evans          |                  | Chris Evans             |                   |                      |                                 |                            |                             |
| Natasha Romanoff Black Widow                     |                  |                    |                      | Scarlett Johansson   |                  | Scarlett Johansson      |                   |                      |                                 |                            | Scarlett Johansson          |
| Thaddeus "Thunderbolt" Ross                      |                  |                    |                      |                      |                  | William Hurt            |                   |                      |                                 | William Hurt               |                             |
| Erik Selvig                                      |                  |                    | Stellan Skarsgård    | Stellan Skarsgård    |                  |                         |                   |                      |                                 |                            |                             |
| Tony Stark Iron Man                              |                  | Robert Downey, Jr. |                      | Robert Downey, Jr.   |                  | Robert Downey, Jr.      |                   |                      |                                 | Robert Downey, Jr.         | Robert Downey, Jr.          |
| Stephen Strange                                  |                  |                    | Benedict Cumberbatch | Benedict Cumberbatch |                  |                         |                   | Benedict Cumberbatch |                                 |                            |                             |
| T'Challa Black Panther                           |                  |                    |                      | Chadwick Boseman     | Chadwick Boseman | Chadwick Boseman        |                   |                      |                                 |                            |                             |
| Thor                                             |                  |                    | Chris Hemsworth      | Chris Hemsworth      |                  |                         |                   | Chris Hemsworth      |                                 |                            |                             |
| Hope van Dyne Wasp                               | Evangeline Lilly |                    |                      | Evangeline Lilly     |                  |                         |                   |                      |                                 |                            |                             |
| Vision                                           |                  |                    |                      | Paul Bettany         |                  | Paul Bettany            |                   |                      |                                 |                            |                             |
| Sam Wilson Falcon                                | Anthony Mackie   |                    |                      | Anthony Mackie       |                  | Anthony Mackie          |                   |                      |                                 |                            |                             |

## Output:


source: web
label: operator: stack
stack_start_idx: 1
stack_end_idx: 11