Generate playlist_year_weight section in the appropriate format.

.format_playlist_weights(weights, api_mode)

Arguments

weights

data.table, 2 columns : mcYears and weights. Only with after antares V8

api_mode

Boolean to identify an api study

Value

The playlist_year_weight section formatted.