This Prepfile.toml template lets you read the a dataset called data.csvand apply operations only on the numeric columns.

Then I export the result into a new dataset called data_cleaned.csv

  [data]
filename = 'data.csv'
csv_separator = ','
decimal_separator = '.'
encoding = 'utf-8'
missing_identifier = ''

[preprocess]
[[preprocess.numerics]]
operations = [
    {op = "fillna", method = "median"},
    {op = "scale", method = "minmax"}
]

[postprocess]
format = 'csv'
filename = 'data_cleaned.csv'
  

Last updated 01 Jun 2025, 20:24 +0200 . history