Error encountered while executing code for IMDB of lesson 3

data = (TextList.from_csv(path, ‘texts.csv’, col=‘text’)
.split_from_df(cols=2)
.label_from_df(cols=0)
.databunch())


TypeError Traceback (most recent call last)
in ()
1 data = (TextList.from_csv(path, ‘texts.csv’, col=‘text’)
----> 2 .split_from_df(cols=2)
3 .label_from_df(cols=0)
4 .databunch())

TypeError: split_from_df() got an unexpected keyword argument ‘cols’

See here:

1 Like

Thanks for the reply. It worked.

1 Like