# scenarioplanner.converters.dataframe.dataframe_model_converter.DataFrameModelConverter

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.2/scenarioplanner/converters/dataframe/dataframe_model_converter.py#L30-L70) |

Converts a bound `Mmm` model into denormalized flat data frame tables.

Inherits From: [`ModelConverter`](https://developers.google.com/meridian/reference/api/scenarioplanner/converters/mmm_converter/ModelConverter.md.txt)

```python
scenarioplanner.converters.dataframe.dataframe_model_converter.DataFrameModelConverter(
    mmm_proto: pb.Mmm
)
```

The denormalized, two-dimensional data frame tables are intended to be
directly compiled into sheets in a Google Sheets file to be used as a data
source for a Looker Studio dashboard.

These data frame tables are:

- "ModelDiagnostics"
- "ModelFit"
- "MediaOutcome"
- "MediaSpend"
- "MediaROI"
- (Named Incremental Outcome Grids)
- "budget_opt_specs"
- "budget_opt_results"
- "response_curves"
- (Named R\&F ROI Grids)
- "rf_opt_specs"
- "rf_opt_results"

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `mmm` | <br /> <br /> |

<br />

## Methods

### `__call__`

[View source](https://github.com/google/meridian/blob/v2.2.2/scenarioplanner/converters/dataframe/dataframe_model_converter.py#L59-L70)

```python
__call__(
    **kwargs
) -> Mapping[str, pd.DataFrame]
```

Converts bound `Mmm` model proto to named, flat data frame tables.