> For the complete documentation index, see [llms.txt](https://doc.verteego.com/verteego-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.verteego.com/verteego-doc/pipelines/forecasting-pipelines/configuration/identifying-and-preparing-data/calculated_cols.md).

# calculated\_cols

### Description

This section defines all columns to be calculated. It details the formulae and operations needed to derive new data points from existing columns, which are crucial for subsequent analysis and prediction stages.

### Steps impacted

<mark style="background-color:orange;">Training</mark>

### Example

```yaml
# This section allows to create features from existing datasets.
calculated_cols:
#   -------------------------------------------------------
#   ----------------------DATE ATTRIBUTE-------------------
#   -------------------------------------------------------
  ajout_dates:
    method: date_attributes
    global: true
    input_columns:
    - receipt_date
    output_columns:
    - month
    - week
    - year
    - day
    - weekday
    # To use with lightgbm and linear_tree: true
    # - ordinal
```
