ImageDataLoaders.from_df error

Hello i have an issue with

dls = ImageDataLoaders.from_df(train_df, valid_col=‘is_valid’, path=‘/…/’)

woth the following error


File ~/.local/lib/python3.8/site-packages/pandas/core/, in _iLocIndexer._getitem_axis(self, key, axis)
1493 raise TypeError(“Cannot index by location index with a non-integer key”)
1495 # validate the location
→ 1496 self._validate_integer(key, axis)
1498 return self.obj._ixs(key, axis=axis)

File ~/.local/lib/python3.8/site-packages/pandas/core/, in _iLocIndexer._validate_integer(self, key, axis)
1435 len_axis = len(self.obj._get_axis(axis))
1436 if key >= len_axis or key < -len_axis:
→ 1437 raise IndexError(“single positional indexer is out-of-bounds”)

IndexError: single positional indexer is out-of-bounds