MMMIDataWrapper.get_channel_spend#
- MMMIDataWrapper.get_channel_spend()[source]#
Get channel spend data in monetary units.
If
channel_spendexists inconstant_data(set viacost_per_unit), returns it directly. Otherwise falls back tochannel_data(backward compatible — assumed already in spend units).- Returns:
xr.DataArrayChannel spend values with dims
(date, channel)or(date, *custom_dims, channel).
- Raises:
ValueErrorIf neither channel_spend nor channel_data found in constant_data.