A café owner fitted a model to predict daily sales from three columns. She wants to know which column the model relies on most.
Task: write most_important(rows, sales, names).
rows is a list of days, each a list of feature values. sales holds each day's sales. names holds the column names, in column order.LinearRegression() on rows and sales.permutation_importance(model, rows, sales, n_repeats=10, random_state=0) on the same rows.importances_mean).Once your code passes every test, a reference solution shows up here so you can compare it with yours.