Task: Transform-by-output-target-schema (source dataset: github-pipelines)

Your task is to create a data transformation pipeline in Python using pandas libraries.

Given Source Tables below, and a Target Schema provided by users that demonstrates how the desired output table should look like schematically, please write Python pandas code that can transform the Source Tables into an output table, that matches the schema/structure given by the Target Schema.  Please note that the data values in the Target Schema are intended to represent the format and layout of the output table, but may not exactly match the actual data generated from the Source Tables when the python code is run on the Source Tables.

Use operations such as merge, groupby, pivot, apply, or any appropriate python or pandas steps. Your code should save the resulting DataFrame to a CSV file named 'output.csv'. Ensure that the code is executable and can be run directly as is, in a Python environment with pandas installed.

Source Tables:


Table #1
Filename: source_0.csv
Sample Rows in Markdown:
| D_CALL                             |
|:-----------------------------------|
| IGHD1-26*01                        |
| IGHD3/OR15-3a*01                   |
| IGHD2-2*02                         |
| IGHD1-1*01,IGHD1-20*01,IGHD4-17*01 |
| IGHD2-2*01,IGHD2-2*02              |
| IGHD6-13*01                        |
| IGHD6-13*01                        |
| IGHD5-12*01                        |
| IGHD5-24*01                        |
| IGHD2-2*01                         |


Target Schema:
| Airline           | Date_of_Journey   | Source   | Destination   | Route                 | Dep_Time   | Arrival_Time   | Duration   | Total_Stops   | Additional_Info             |   Price |
|:------------------|:------------------|:---------|:--------------|:----------------------|:-----------|:---------------|:-----------|:--------------|:----------------------------|--------:|
| IndiGo            | 24/03/2019        | Banglore | New Delhi     | BLR → DEL             | 22:20      | 01:10 22 Mar   | 2h 50m     | non-stop      | No info                     |    3897 |
| Air India         | 1/05/2019         | Kolkata  | Banglore      | CCU → IXR → BBI → BLR | 05:50      | 13:15          | 7h 25m     | 2 stops       | No info                     |    7662 |
| Jet Airways       | 9/06/2019         | Delhi    | Cochin        | DEL → LKO → BOM → COK | 09:25      | 04:25 10 Jun   | 19h        | 2 stops       | No info                     |   13882 |
| IndiGo            | 12/05/2019        | Kolkata  | Banglore      | CCU → NAG → BLR       | 18:05      | 23:30          | 5h 25m     | 1 stop        | No info                     |    6218 |
| IndiGo            | 01/03/2019        | Banglore | New Delhi     | BLR → NAG → DEL       | 16:50      | 21:35          | 4h 45m     | 1 stop        | No info                     |   13302 |
| SpiceJet          | 24/06/2019        | Kolkata  | Banglore      | CCU → BLR             | 09:00      | 11:25          | 2h 25m     | non-stop      | No info                     |    3873 |
| Jet Airways       | 12/03/2019        | Banglore | New Delhi     | BLR → BOM → DEL       | 18:55      | 10:25 13 Mar   | 15h 30m    | 1 stop        | In-flight meal not included |   11087 |
| Jet Airways       | 01/03/2019        | Banglore | New Delhi     | BLR → BOM → DEL       | 08:00      | 05:05 02 Mar   | 21h 5m     | 1 stop        | No info                     |   22270 |
| Jet Airways       | 12/03/2019        | Banglore | New Delhi     | BLR → BOM → DEL       | 08:55      | 10:25 13 Mar   | 25h 30m    | 1 stop        | In-flight meal not included |   11087 |
| Multiple carriers | 27/05/2019        | Delhi    | Cochin        | DEL → BOM → COK       | 11:25      | 19:15          | 7h 50m     | 1 stop        | No info                     |    8625 |

Return only the final code in markdown codeblock format, without any additional text or explanation. 



target: target.csv
train: source_0.csv
test: test_0.csv