# Frames to fields processing

Select the **Frames to fields** option if your script produces Python list of dictionaries or a pandas DataFrame as the output. You can then map the data frame fields and types to PDI fields and types when running the transformation.

![Output tab in Python Executor](https://3411831820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAYwCj9fPr1B2pjC11IOQ%2Fuploads%2Fgit-blob-2498d897974b1c8c04889d6c34799de19f9cbee3%2FPDI_TransStep_PythonExec_Output_FramesToFields.png?alt=media)

These are the fields in the **Mapping** table. Select the **Get fields** button to populate the table with fields from the output step(s) in your transformation. If necessary, you can modify your selections.

| Option                   | Description                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Data structure field** | The value of the Python data structure field which you want to map to the PDI field.                                                                                                                                                                                                                                                                                                                             |
| **Data structure type**  | The value of the data structure type assigned to the data structure field which you want to map to the PDI field. For detailed information on data types, see [Mapping data types from Python to PDI](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/python-executor/options-python-executor/output-tab/mapping-data-types-from-python-to-pdi). |
| **PDI field**            | The value of the PDI field to which you want to map the data structure field.                                                                                                                                                                                                                                                                                                                                    |
| **PDI data type**        | The value of the data type assigned to the PDI field, such as a date, a number, or a timestamp.                                                                                                                                                                                                                                                                                                                  |
