Machine Learning in Elixir: Error in Chapter 1, first code snippet of "Preparing the Data for Training" (page 13)

@seanmor5

The mutate macro from the Explorer.DataFrame variable does not like variables:

It works without the variable:

1 Like

Nice catch! This is the same as: Machine Learning in Elixir: Mutate not working, missing pin ^ (Iris example, Chapter 1)

You can use cols with the pin operator, e.g. across(^cols)

1 Like

Beat me to reporting it :slight_smile:

helpful.

But why can’t I use: the across, mean and variance functions on its own?