I’m not sure what @kalilamali means exactly by resetting the indexes after splitting.
Maybe the original indices (from the complete dataset) were used to index the Subsets, which would yield an IndexError.