We train an ML model, not apply it. We need to fetch a batch of data as Pandas dataframe and feed it into a model for training.

Sergey