Hey @BorutF !
Take a look at TextBlock.from_df (Text data | fastai) – this should outline what your looking for in regards to this example.
In general, when trying to extract the data from a dataframe, you’ll want to use the get_x method vs the get_item – this distinction can certainly be confusing, but after a few times you’ll get the hang of it!
It appears to be a lot faster than the TextDataLoaders.from_csv, also later in training the model, however that could be due to google colab processing capacity availability.